diff options
author | QUSpilPrgm <QUSpilPrgm@users.noreply.github.com> | 2016-06-04 14:16:35 +0200 |
---|---|---|
committer | QUSpilPrgm <QUSpilPrgm@users.noreply.github.com> | 2016-06-15 10:33:49 +0200 |
commit | 33cd7f4e75819d50f22ae61027373ebb331305b5 (patch) | |
tree | b61d763a27e1986116c1a2f3b779bcf0bb1bd27b /src/BlockEntities/DispenserEntity.cpp | |
parent | Merge pull request #3227 from cuberite/NormalizeVectorApi (diff) | |
download | cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.tar cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.tar.gz cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.tar.bz2 cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.tar.lz cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.tar.xz cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.tar.zst cuberite-33cd7f4e75819d50f22ae61027373ebb331305b5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/DispenserEntity.cpp | 2 |
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); |