summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-15 23:53:44 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-15 23:53:44 +0200
commit1df5a1f237cd4b620ada8aa9706d052ec54f1519 (patch)
tree667f81ac1c11c77d05894ccc2d432cfead17ce18 /src/BlockEntities
parentMerge pull request #1191 from Masy98/Blocks (diff)
downloadcuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.tar
cuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.tar.gz
cuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.tar.bz2
cuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.tar.lz
cuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.tar.xz
cuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.tar.zst
cuberite-1df5a1f237cd4b620ada8aa9706d052ec54f1519.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/DropSpenserEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/DropSpenserEntity.cpp b/src/BlockEntities/DropSpenserEntity.cpp
index 0012742fb..108c2ce1b 100644
--- a/src/BlockEntities/DropSpenserEntity.cpp
+++ b/src/BlockEntities/DropSpenserEntity.cpp
@@ -42,7 +42,7 @@ cDropSpenserEntity::~cDropSpenserEntity()
void cDropSpenserEntity::AddDropSpenserDir(int & a_BlockX, int & a_BlockY, int & a_BlockZ, NIBBLETYPE a_Direction)
{
- switch (a_Direction)
+ switch (a_Direction & 0x07) // Vanilla uses the 8th bit to determine power state - we don't
{
case E_META_DROPSPENSER_FACING_YM: a_BlockY--; return;
case E_META_DROPSPENSER_FACING_YP: a_BlockY++; return;