diff options
author | Lukas Pioch <lukas@zgow.de> | 2020-04-25 11:27:11 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-04-25 13:27:39 +0200 |
commit | 38080c7cac939c433af6c19e8173339bfdb0b68e (patch) | |
tree | 44b50a3b1e7f998c7fbae920778632a401fec13e | |
parent | Fixed spawning of mobs from dispenser (diff) | |
download | cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.tar cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.tar.gz cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.tar.bz2 cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.tar.lz cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.tar.xz cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.tar.zst cuberite-38080c7cac939c433af6c19e8173339bfdb0b68e.zip |
-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 568609998..d97d7198e 100644 --- a/src/BlockEntities/DispenserEntity.cpp +++ b/src/BlockEntities/DispenserEntity.cpp @@ -115,7 +115,7 @@ void cDispenserEntity::DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum) double MobX = 0.5 + dispAbsCoord.x; double MobZ = 0.5 + dispAbsCoord.z; auto MonsterType = cItemSpawnEggHandler::ItemDamageToMonsterType(m_Contents.GetSlot(a_SlotNum).m_ItemDamage); - if (m_World->SpawnMob(MobX, dispAbsCoord.y, MobZ, static_cast<eMonsterType>(MonsterType), false) != cEntity::INVALID_ID) + if (m_World->SpawnMob(MobX, dispAbsCoord.y, MobZ, MonsterType, false) != cEntity::INVALID_ID) { m_Contents.ChangeSlotCount(a_SlotNum, -1); } |