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/Entities/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Entities/Player.cpp') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 376f431eb..04a7f9be0 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2192,7 +2192,7 @@ bool cPlayer::IsClimbing(void) const { const auto Position = GetPosition().Floor(); - if (!cChunkDef::IsValidHeight(Position.y)) + if (!cChunkDef::IsValidHeight(Position)) { return false; } @@ -2579,7 +2579,7 @@ bool cPlayer::IsInsideWater() { const auto EyePos = GetEyePosition().Floor(); - if (!cChunkDef::IsValidHeight(EyePos.y)) + if (!cChunkDef::IsValidHeight(EyePos)) { // Not in water if in void. return false; -- cgit v1.2.3