summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-12-01 16:39:42 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-12-01 16:39:42 +0100
commitcd0081bb677c09b21fc5017dc1e01eaa18774698 (patch)
tree3a5ea294a105a298d91817a2599ae296b7c34d4b /src/Chunk.cpp
parentAdded better soulsand rims (diff)
parentUpdated core (diff)
downloadcuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar
cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.gz
cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.bz2
cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.lz
cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.xz
cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.zst
cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index a2a11f130..d271b4cb4 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -16,13 +16,14 @@
#include "BlockEntities/ChestEntity.h"
#include "BlockEntities/DispenserEntity.h"
#include "BlockEntities/DropperEntity.h"
+#include "BlockEntities/FlowerPotEntity.h"
#include "BlockEntities/FurnaceEntity.h"
#include "BlockEntities/HopperEntity.h"
#include "BlockEntities/JukeboxEntity.h"
+#include "BlockEntities/MobHeadEntity.h"
+#include "BlockEntities/MobSpawnerEntity.h"
#include "BlockEntities/NoteEntity.h"
#include "BlockEntities/SignEntity.h"
-#include "BlockEntities/MobHeadEntity.h"
-#include "BlockEntities/FlowerPotEntity.h"
#include "Entities/Pickup.h"
#include "Item.h"
#include "Noise/Noise.h"
@@ -1348,6 +1349,7 @@ void cChunk::CreateBlockEntities(void)
case E_BLOCK_NOTE_BLOCK:
case E_BLOCK_JUKEBOX:
case E_BLOCK_FLOWER_POT:
+ case E_BLOCK_MOB_SPAWNER:
{
if (!HasBlockEntityAt(x + m_PosX * Width, y, z + m_PosZ * Width))
{
@@ -1479,6 +1481,7 @@ void cChunk::SetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType,
case E_BLOCK_NOTE_BLOCK:
case E_BLOCK_JUKEBOX:
case E_BLOCK_FLOWER_POT:
+ case E_BLOCK_MOB_SPAWNER:
{
AddBlockEntity(cBlockEntity::CreateByBlockType(a_BlockType, a_BlockMeta, WorldPos.x, WorldPos.y, WorldPos.z, m_World));
break;