diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 19:05:44 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 19:05:44 +0100 |
commit | ca728da9b6c0ac433907ee95db622ec961facd1f (patch) | |
tree | caaecfcf333e0e9f400cdb944ba964d451c2ea36 /src | |
parent | Mineshaft spawners now spawn cave spiders (diff) | |
download | cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.tar cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.tar.gz cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.tar.bz2 cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.tar.lz cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.tar.xz cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.tar.zst cuberite-ca728da9b6c0ac433907ee95db622ec961facd1f.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Generating/MineShafts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/MineShafts.cpp b/src/Generating/MineShafts.cpp index 33835160c..65588ce4b 100644 --- a/src/Generating/MineShafts.cpp +++ b/src/Generating/MineShafts.cpp @@ -876,7 +876,7 @@ void cMineShaftCorridor::PlaceSpawner(cChunkDesc & a_ChunkDesc) ) { a_ChunkDesc.SetBlockTypeMeta(SpawnerRelX, m_BoundingBox.p1.y + 1, SpawnerRelZ, E_BLOCK_MOB_SPAWNER, 0); - cMobSpawnerEntity * MobSpawner = (cMobSpawnerEntity *)a_ChunkDesc.GetBlockEntity(SpawnerRelX, m_BoundingBox.p1.y + 1, SpawnerRelZ); + cMobSpawnerEntity * MobSpawner = static_cast<cMobSpawnerEntity *>(a_ChunkDesc.GetBlockEntity(SpawnerRelX, m_BoundingBox.p1.y + 1, SpawnerRelZ)); ASSERT((MobSpawner != nullptr) && (MobSpawner->GetBlockType() == E_BLOCK_MOB_SPAWNER)); MobSpawner->SetEntity(mtCaveSpider); } |