summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/DispenserEntity.cpp
diff options
context:
space:
mode:
authorJoannisO <Joannis.Orlandos@gmail.com>2014-06-03 18:19:06 +0200
committerJoannisO <Joannis.Orlandos@gmail.com>2014-06-03 18:19:06 +0200
commit2ecf425c39452a96398346d114525eeff7cbf50a (patch)
treed583f00716109e0e59f2447780364a2bed3305c0 /src/BlockEntities/DispenserEntity.cpp
parent- Cleaned up the code massively (diff)
downloadcuberite-2ecf425c39452a96398346d114525eeff7cbf50a.tar
cuberite-2ecf425c39452a96398346d114525eeff7cbf50a.tar.gz
cuberite-2ecf425c39452a96398346d114525eeff7cbf50a.tar.bz2
cuberite-2ecf425c39452a96398346d114525eeff7cbf50a.tar.lz
cuberite-2ecf425c39452a96398346d114525eeff7cbf50a.tar.xz
cuberite-2ecf425c39452a96398346d114525eeff7cbf50a.tar.zst
cuberite-2ecf425c39452a96398346d114525eeff7cbf50a.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 2ac7c085c..904ab871b 100644
--- a/src/BlockEntities/DispenserEntity.cpp
+++ b/src/BlockEntities/DispenserEntity.cpp
@@ -215,7 +215,7 @@ void cDispenserEntity::DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum)
void cDispenserEntity::SpawnProjectileFromDispenser(int & a_BlockX, int & a_BlockY, int & a_BlockZ, cProjectileEntity::eKind a_kind, Vector3d a_ShootVector)
{
- if(a_kind != E_ITEM_FIRE_CHARGE)
+ if(a_kind != cProjectileEntity::pkFireCharge)
a_ShootVector.y = a_ShootVector.y + 1;
m_World->CreateProjectile((double) a_BlockX + 0.5, (double) a_BlockY + 0.5, (double) a_BlockZ + 0.5, a_kind, NULL, NULL, &a_ShootVector);