Skip to content

Commit

Permalink
Don't spawn boats in ground
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiascode authored Mar 5, 2020
1 parent cff9f75 commit d572ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Items/ItemBoat.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class cItemBoatHandler :
}

// Spawn block at water level
if (a_World->SpawnBoat(Callbacks.m_Pos + Vector3d(0.5, 0.5, 0.5), cBoat::ItemToMaterial(a_Player->GetEquippedItem())) == cEntity::INVALID_ID)
if (a_World->SpawnBoat(Callbacks.m_Pos + Vector3d(0.5, 1, 0.5), cBoat::ItemToMaterial(a_Player->GetEquippedItem())) == cEntity::INVALID_ID)
{
return false;
}
Expand Down

0 comments on commit d572ad7

Please sign in to comment.