From fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6 Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Wed, 20 Apr 2022 00:10:35 +0200 Subject: Valid Height is now checked by vector. --- src/Items/ItemBoat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Items/ItemBoat.h') diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h index 51f2f8803..4fc041787 100644 --- a/src/Items/ItemBoat.h +++ b/src/Items/ItemBoat.h @@ -70,7 +70,7 @@ public: // Block above must be air to spawn a boat (prevents spawning a boat underwater) auto PosAbove = Callbacks.m_Pos.Floor().addedY(1); - if (!cChunkDef::IsValidHeight(PosAbove.y)) + if (!cChunkDef::IsValidHeight(PosAbove)) { return false; } -- cgit v1.2.3