Skip to content

Commit 30f27d4

Browse files
authored
Merge pull request cabaletta#4145 from wagyourtail/1.19.4
actually fix mine under 0 height
2 parents 91588ca + 74457db commit 30f27d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/baritone/cache/FasterWorldScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private Stream<BlockPos> scanChunkInternal(IPlayerContext ctx, BlockOptionalMeta
151151
long chunkX = (long) pos.x << 4;
152152
long chunkZ = (long) pos.z << 4;
153153

154-
int playerSectionY = ctx.playerFeet().y >> 4;
154+
int playerSectionY = (ctx.playerFeet().y - ctx.world().getMinBuildHeight()) >> 4;
155155

156156
return collectChunkSections(lookup, chunkProvider.getChunk(pos.x, pos.z, false), chunkX, chunkZ, playerSectionY).stream();
157157
}

0 commit comments

Comments
 (0)