summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-01 15:59:57 +0100
committerMattes D <github@xoft.cz>2014-12-01 15:59:57 +0100
commita13c75085e755d9456e395edd14543e983a0601d (patch)
tree5a2c61db0c715774fbc8a55918cdcd57c405c1aa /src/Chunk.cpp
parentMerge pull request #1624 from mc-server/LuaDeprecating (diff)
parentMobSpawner fixes. (diff)
downloadcuberite-a13c75085e755d9456e395edd14543e983a0601d.tar
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.gz
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.bz2
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.lz
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.xz
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.zst
cuberite-a13c75085e755d9456e395edd14543e983a0601d.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;