summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Items/ItemBoat.h6
1 files changed, 6 insertions, 0 deletions
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;
}
} ;