summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntity.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/BlockEntities/BlockEntity.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/BlockEntities/BlockEntity.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/BlockEntities/BlockEntity.cpp b/src/BlockEntities/BlockEntity.cpp
index 05ad03a3d..a969f493e 100644
--- a/src/BlockEntities/BlockEntity.cpp
+++ b/src/BlockEntities/BlockEntity.cpp
@@ -14,10 +14,11 @@
#include "FlowerPotEntity.h"
#include "FurnaceEntity.h"
#include "HopperEntity.h"
+#include "MobHeadEntity.h"
+#include "MobSpawnerEntity.h"
#include "JukeboxEntity.h"
#include "NoteEntity.h"
#include "SignEntity.h"
-#include "MobHeadEntity.h"
@@ -35,8 +36,9 @@ cBlockEntity * cBlockEntity::CreateByBlockType(BLOCKTYPE a_BlockType, NIBBLETYPE
case E_BLOCK_ENDER_CHEST: return new cEnderChestEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_FLOWER_POT: return new cFlowerPotEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_FURNACE: return new cFurnaceEntity (a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, a_World);
- case E_BLOCK_HEAD: return new cMobHeadEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_HOPPER: return new cHopperEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
+ case E_BLOCK_HEAD: return new cMobHeadEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
+ case E_BLOCK_MOB_SPAWNER: return new cMobSpawnerEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_JUKEBOX: return new cJukeboxEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_LIT_FURNACE: return new cFurnaceEntity (a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, a_World);
case E_BLOCK_SIGN_POST: return new cSignEntity (a_BlockType, a_BlockX, a_BlockY, a_BlockZ, a_World);