diff options
author | x12xx12x <44411062+12xx12@users.noreply.github.com> | 2022-04-20 08:21:41 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2022-04-20 09:41:02 +0200 |
commit | 5261e316c52b214dd4602397f4a620e5cee0d132 (patch) | |
tree | 18fb6e072d82871b7d1becac7d6744b5fccec686 /src/Mobs | |
parent | Valid Height is now checked by vector. (diff) | |
download | cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.gz cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.bz2 cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.lz cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.xz cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.zst cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/PathFinder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/PathFinder.cpp b/src/Mobs/PathFinder.cpp index 260044f3b..2e832918a 100644 --- a/src/Mobs/PathFinder.cpp +++ b/src/Mobs/PathFinder.cpp @@ -236,7 +236,7 @@ bool cPathFinder::EnsureProperPoint(Vector3d & a_Vector, cChunk & a_Chunk) // Go down to the lowest air block. if (InTheAir) { - while (cChunkDef::IsValidHeight(a_Vector.addedY(-1))) + while (cChunkDef::IsValidHeight(BelowRel.addedY(-1))) { Chunk->GetBlockTypeMeta(BelowRel.addedY(-1), BlockType, BlockMeta); if (IsWaterOrSolid(BlockType)) |