summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/DispenserEntity.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-16 21:54:09 +0200
committerGitHub <noreply@github.com>2016-06-16 21:54:09 +0200
commitec998e821fd905966ed14ed47a29520ec1d1d782 (patch)
treeb61d763a27e1986116c1a2f3b779bcf0bb1bd27b /src/BlockEntities/DispenserEntity.cpp
parentMerge pull request #3227 from cuberite/NormalizeVectorApi (diff)
parent- Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update. (diff)
downloadcuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.tar
cuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.tar.gz
cuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.tar.bz2
cuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.tar.lz
cuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.tar.xz
cuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.tar.zst
cuberite-ec998e821fd905966ed14ed47a29520ec1d1d782.zip
Diffstat (limited to 'src/BlockEntities/DispenserEntity.cpp')
-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 e03644a0f..d6fbafadf 100644
--- a/src/BlockEntities/DispenserEntity.cpp
+++ b/src/BlockEntities/DispenserEntity.cpp
@@ -283,7 +283,7 @@ UInt32 cDispenserEntity::SpawnProjectileFromDispenser(int a_BlockX, int a_BlockY
Vector3d cDispenserEntity::GetShootVector(NIBBLETYPE a_Meta)
{
- switch (a_Meta & 0x7)
+ switch (a_Meta & E_META_DROPSPENSER_FACING_MASK)
{
case E_META_DROPSPENSER_FACING_YP: return Vector3d( 0, 1, 0);
case E_META_DROPSPENSER_FACING_YM: return Vector3d( 0, -1, 0);