diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-06 21:00:49 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-06 21:00:49 +0100 |
commit | 6c7de446ae2a691296a25dc74022e09761ef8197 (patch) | |
tree | db4feebe5f22578d265692c6bb98cdb16bfe9e5f /src/Items | |
parent | Tools make a sound when breaking, fixes #266 (diff) | |
download | cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.tar cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.tar.gz cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.tar.bz2 cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.tar.lz cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.tar.xz cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.tar.zst cuberite-6c7de446ae2a691296a25dc74022e09761ef8197.zip |
Diffstat (limited to 'src/Items')
-rw-r--r-- | src/Items/ItemSpawnEgg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemSpawnEgg.h b/src/Items/ItemSpawnEgg.h index 26dd15b7d..407d655de 100644 --- a/src/Items/ItemSpawnEgg.h +++ b/src/Items/ItemSpawnEgg.h @@ -28,14 +28,14 @@ public: AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace); - if (a_BlockFace == BLOCK_FACE_BOTTOM) + if (a_BlockFace == BLOCK_FACE_YM) { a_BlockY--; } if (a_World->SpawnMob(a_BlockX + 0.5, a_BlockY, a_BlockZ + 0.5, (cMonster::eType)(a_Item.m_ItemDamage)) >= 0) { - if (a_Player->GetGameMode() != 1) + if (!a_Player->IsGameModeCreative()) { // The mob was spawned, "use" the item: a_Player->GetInventory().RemoveOneEquippedItem(); |