diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-07-16 23:22:42 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-07-16 23:22:42 +0200 |
commit | 4b99a5bd49f2756f927e173f9c41c48cb4cb553a (patch) | |
tree | 7e9ce8ee6bf8f6eca7f2f4aec2c3abc0dc906a5e /src/BlockEntities/DispenserEntity.cpp | |
parent | Merge pull request #2360 from bibo38/waterfix (diff) | |
parent | Spawn baby mobs (diff) | |
download | cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.tar cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.tar.gz cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.tar.bz2 cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.tar.lz cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.tar.xz cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.tar.zst cuberite-4b99a5bd49f2756f927e173f9c41c48cb4cb553a.zip |
Diffstat (limited to 'src/BlockEntities/DispenserEntity.cpp')
-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 a847f1b65..297d5273e 100644 --- a/src/BlockEntities/DispenserEntity.cpp +++ b/src/BlockEntities/DispenserEntity.cpp @@ -105,7 +105,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, static_cast<eMonsterType>(m_Contents.GetSlot(a_SlotNum).m_ItemDamage)) != cEntity::INVALID_ID) + if (m_World->SpawnMob(MobX, DispY, MobZ, static_cast<eMonsterType>(m_Contents.GetSlot(a_SlotNum).m_ItemDamage), false) != cEntity::INVALID_ID) { m_Contents.ChangeSlotCount(a_SlotNum, -1); } |