From eed6f9bb7bd2553a509a7bba7be32436aa96659b Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Sat, 24 Nov 2012 09:50:38 +0000 Subject: Fixed drops for: Stone, Mycelium, Redstone Torch. Fixed item usage for Jukeboxes and Spawn eggs in survival. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1064 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Items/ItemSpawnEgg.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/Items/ItemSpawnEgg.h') diff --git a/source/Items/ItemSpawnEgg.h b/source/Items/ItemSpawnEgg.h index f3018075b..33a1e1d55 100644 --- a/source/Items/ItemSpawnEgg.h +++ b/source/Items/ItemSpawnEgg.h @@ -35,8 +35,11 @@ public: if (a_World->SpawnMob(a_BlockX + 0.5, a_BlockY, a_BlockZ + 0.5, a_Item->m_ItemDamage) >= 0) { - // The mob was spawned, "use" the item: - a_Player->UseEquippedItem(); + if(a_Player->GetGameMode() != 1) + { + // The mob was spawned, "use" the item: + a_Player->GetInventory().RemoveItem(a_Player->GetInventory().GetEquippedItem()); + } return true; } -- cgit v1.2.3