From dca896dfcc9d95c7aa2d9c02d8392027c28c6473 Mon Sep 17 00:00:00 2001 From: Mat Date: Sun, 1 Mar 2020 08:14:38 +0200 Subject: Boats can be spawned on land --- src/Items/ItemBoat.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h index f0b0cefd8..3f68240d4 100644 --- a/src/Items/ItemBoat.h +++ b/src/Items/ItemBoat.h @@ -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) -- cgit v1.2.3