Merge pull request #3629 from Seadragon91/patch-1
Boat spawned, remove it from player's hand
This commit is contained in:
commit
2b46a32a21
@ -98,6 +98,12 @@ public:
|
|||||||
cBoat * Boat = new cBoat(x + 0.5, y + 0.5, z + 0.5);
|
cBoat * Boat = new cBoat(x + 0.5, y + 0.5, z + 0.5);
|
||||||
Boat->Initialize(*a_World);
|
Boat->Initialize(*a_World);
|
||||||
|
|
||||||
|
// Remove boat from players hand
|
||||||
|
if (!a_Player->IsGameModeCreative())
|
||||||
|
{
|
||||||
|
a_Player->GetInventory().RemoveOneEquippedItem();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
Loading…
Reference in New Issue
Block a user