Boats can be spawned on land
This commit is contained in:
parent
ddc92ec034
commit
dca896dfcc
@ -73,13 +73,6 @@ public:
|
|||||||
auto by = FloorC(y);
|
auto by = FloorC(y);
|
||||||
auto bz = FloorC(z);
|
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)
|
// Block above must be air to spawn a boat (prevents spawning a boat underwater)
|
||||||
BLOCKTYPE BlockAbove = a_World->GetBlock(bx, by + 1, bz);
|
BLOCKTYPE BlockAbove = a_World->GetBlock(bx, by + 1, bz);
|
||||||
if (BlockAbove != E_BLOCK_AIR)
|
if (BlockAbove != E_BLOCK_AIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user