summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-19 23:00:54 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-19 23:00:54 +0200
commit718eb227abe3b9a0e5277d663e32c6e10d51ab52 (patch)
tree5be83249ccd5b1ab4d2b87a4fa1597424d4e19b2 /src/Chunk.cpp
parentMerge branch 'master' into MobSpawner (diff)
downloadcuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.gz
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.bz2
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.lz
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.xz
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.zst
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index e75acb03b..c799f65fd 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.h"
@@ -1344,6 +1345,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))
{
@@ -1475,6 +1477,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;