1
0

Boats can be spawned on land

This commit is contained in:
Mat 2020-03-01 08:14:38 +02:00 committed by peterbell10
parent ddc92ec034
commit dca896dfcc

View File

@ -73,13 +73,6 @@ public:
auto by = FloorC(y);
auto bz = FloorC(z);
// Verify that block type for spawn point is water
BLOCKTYPE SpawnBlock = a_World->GetBlock(bx, by, bz);
if (!IsBlockWater(SpawnBlock))
{
return false;
}
// Block above must be air to spawn a boat (prevents spawning a boat underwater)
BLOCKTYPE BlockAbove = a_World->GetBlock(bx, by + 1, bz);
if (BlockAbove != E_BLOCK_AIR)