1
0
Fork 0

Boat spawned, remove it from player's hand

This commit is contained in:
Lukas Pioch 2017-03-17 19:33:18 +01:00
parent f269565e73
commit 043a82344f
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}
} ;