summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-25 18:37:36 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-25 18:37:36 +0200
commit67fe834499b2f0f93cdba1132a80ccb1924e199c (patch)
tree90bca079e08d075c50a9bbd7ce45ab61f1fd79d8 /src
parentFixed hanging direction bugs. (diff)
downloadcuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.tar
cuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.tar.gz
cuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.tar.bz2
cuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.tar.lz
cuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.tar.xz
cuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.tar.zst
cuberite-67fe834499b2f0f93cdba1132a80ccb1924e199c.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/DispenserEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/DispenserEntity.cpp b/src/BlockEntities/DispenserEntity.cpp
index c02c68afa..f8830bf25 100644
--- a/src/BlockEntities/DispenserEntity.cpp
+++ b/src/BlockEntities/DispenserEntity.cpp
@@ -203,7 +203,7 @@ void cDispenserEntity::SpawnProjectileFromDispenser(int a_BlockX, int a_BlockY,
Vector3d cDispenserEntity::GetShootVector(NIBBLETYPE a_Meta)
{
- switch (a_Meta)
+ switch (a_Meta & 0x7)
{
case E_META_DROPSPENSER_FACING_YP: return Vector3d( 0, 1, 0);
case E_META_DROPSPENSER_FACING_YM: return Vector3d( 0, -1, 0);