summaryrefslogtreecommitdiffstats
path: root/source/BlockEntities/DispenserEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-16 10:48:19 +0200
committermadmaxoft <github@xoft.cz>2013-08-16 10:48:30 +0200
commit0cb00996de574095fac49e181a11e6a766248743 (patch)
treed55b61dd2ca191bc44e11abe22100dacf62e9248 /source/BlockEntities/DispenserEntity.cpp
parentRemoved squirrel plugin remnants (diff)
downloadcuberite-0cb00996de574095fac49e181a11e6a766248743.tar
cuberite-0cb00996de574095fac49e181a11e6a766248743.tar.gz
cuberite-0cb00996de574095fac49e181a11e6a766248743.tar.bz2
cuberite-0cb00996de574095fac49e181a11e6a766248743.tar.lz
cuberite-0cb00996de574095fac49e181a11e6a766248743.tar.xz
cuberite-0cb00996de574095fac49e181a11e6a766248743.tar.zst
cuberite-0cb00996de574095fac49e181a11e6a766248743.zip
Diffstat (limited to '')
-rw-r--r--source/BlockEntities/DispenserEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/BlockEntities/DispenserEntity.cpp b/source/BlockEntities/DispenserEntity.cpp
index cde67bb41..f2c542c37 100644
--- a/source/BlockEntities/DispenserEntity.cpp
+++ b/source/BlockEntities/DispenserEntity.cpp
@@ -112,7 +112,7 @@ void cDispenserEntity::DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum)
{
double MobX = 0.5 + (DispX + DispChunk->GetPosX() * cChunkDef::Width);
double MobZ = 0.5 + (DispZ + DispChunk->GetPosZ() * cChunkDef::Width);
- if (m_World->SpawnMob(MobX, DispY, MobZ, m_Contents.GetSlot(a_SlotNum).m_ItemDamage) >= 0)
+ if (m_World->SpawnMob(MobX, DispY, MobZ, (cMonster::eType)m_Contents.GetSlot(a_SlotNum).m_ItemDamage) >= 0)
{
m_Contents.ChangeSlotCount(a_SlotNum, -1);
}