1
0
Fork 0

Merge pull request #3629 from Seadragon91/patch-1

Boat spawned, remove it from player's hand
This commit is contained in:
Lukas Pioch 2017-03-18 21:45:28 +01:00 committed by GitHub
commit 2b46a32a21
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;
}
} ;