summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-19 13:01:28 +0200
committermadmaxoft <github@xoft.cz>2014-04-19 13:01:28 +0200
commit5f3df1445f1ec129667a603bc979e293a3ed8272 (patch)
tree1d0b4bc0f8c46a5df74a2ff98f35ee5ae8491e2f /src/BlockEntities/BlockEntity.cpp
parentCompilation fix (diff)
parentSome tweaks (diff)
downloadcuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar
cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.gz
cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.bz2
cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.lz
cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.xz
cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.zst
cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/BlockEntity.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/BlockEntities/BlockEntity.cpp b/src/BlockEntities/BlockEntity.cpp
index b42318c2f..430f04551 100644
--- a/src/BlockEntities/BlockEntity.cpp
+++ b/src/BlockEntities/BlockEntity.cpp
@@ -4,6 +4,7 @@
// Implements the cBlockEntity class that is the common ancestor for all block entities
#include "Globals.h"
+#include "BeaconEntity.h"
#include "BlockEntity.h"
#include "ChestEntity.h"
#include "CommandBlockEntity.h"
@@ -26,6 +27,7 @@ cBlockEntity * cBlockEntity::CreateByBlockType(BLOCKTYPE a_BlockType, NIBBLETYPE
{
switch (a_BlockType)
{
+ case E_BLOCK_BEACON: return new cBeaconEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_CHEST: return new cChestEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_COMMAND_BLOCK: return new cCommandBlockEntity(a_BlockX, a_BlockY, a_BlockZ, a_World);
case E_BLOCK_DISPENSER: return new cDispenserEntity (a_BlockX, a_BlockY, a_BlockZ, a_World);