From 043a82344f41562378651be6ecb626813b0b5ac0 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Fri, 17 Mar 2017 19:33:18 +0100 Subject: Boat spawned, remove it from player's hand --- src/Items/ItemBoat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h index 5f7f91b57..be1663eef 100644 --- a/src/Items/ItemBoat.h +++ b/src/Items/ItemBoat.h @@ -98,6 +98,12 @@ public: cBoat * Boat = new cBoat(x + 0.5, y + 0.5, z + 0.5); Boat->Initialize(*a_World); + // Remove boat from players hand + if (!a_Player->IsGameModeCreative()) + { + a_Player->GetInventory().RemoveOneEquippedItem(); + } + return true; } } ; -- cgit v1.2.3