1
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

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