diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 18:47:39 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 18:47:39 +0100 |
commit | 25e3869485106966aebbf0041f416d61c41114db (patch) | |
tree | 296f4adf2f869efeb02feb1c89752c77898f6079 /src | |
parent | Simplefied SoulsandRims (diff) | |
download | cuberite-25e3869485106966aebbf0041f416d61c41114db.tar cuberite-25e3869485106966aebbf0041f416d61c41114db.tar.gz cuberite-25e3869485106966aebbf0041f416d61c41114db.tar.bz2 cuberite-25e3869485106966aebbf0041f416d61c41114db.tar.lz cuberite-25e3869485106966aebbf0041f416d61c41114db.tar.xz cuberite-25e3869485106966aebbf0041f416d61c41114db.tar.zst cuberite-25e3869485106966aebbf0041f416d61c41114db.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/MineShafts.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Generating/MineShafts.cpp b/src/Generating/MineShafts.cpp index 55b3b64dd..33835160c 100644 --- a/src/Generating/MineShafts.cpp +++ b/src/Generating/MineShafts.cpp @@ -20,6 +20,7 @@ in a depth-first processing. Each of the descendants will branch randomly, if no #include "MineShafts.h" #include "../Cuboid.h" #include "../BlockEntities/ChestEntity.h" +#include "../BlockEntities/MobSpawnerEntity.h" @@ -875,7 +876,9 @@ void cMineShaftCorridor::PlaceSpawner(cChunkDesc & a_ChunkDesc) ) { a_ChunkDesc.SetBlockTypeMeta(SpawnerRelX, m_BoundingBox.p1.y + 1, SpawnerRelZ, E_BLOCK_MOB_SPAWNER, 0); - // TODO: The spawner needs its accompanying cMobSpawnerEntity, when implemented + cMobSpawnerEntity * MobSpawner = (cMobSpawnerEntity *)a_ChunkDesc.GetBlockEntity(SpawnerRelX, m_BoundingBox.p1.y + 1, SpawnerRelZ); + ASSERT((MobSpawner != nullptr) && (MobSpawner->GetBlockType() == E_BLOCK_MOB_SPAWNER)); + MobSpawner->SetEntity(mtCaveSpider); } } |