diff options
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |