mirror of https://github.com/cabaletta/baritone
Merge pull request #4145 from wagyourtail/1.19.4
actually fix mine under 0 height
This commit is contained in:
commit
30f27d43e7
|
@ -151,7 +151,7 @@ public enum FasterWorldScanner implements IWorldScanner {
|
||||||
long chunkX = (long) pos.x << 4;
|
long chunkX = (long) pos.x << 4;
|
||||||
long chunkZ = (long) pos.z << 4;
|
long chunkZ = (long) pos.z << 4;
|
||||||
|
|
||||||
int playerSectionY = ctx.playerFeet().y >> 4;
|
int playerSectionY = (ctx.playerFeet().y - ctx.world().getMinBuildHeight()) >> 4;
|
||||||
|
|
||||||
return collectChunkSections(lookup, chunkProvider.getChunk(pos.x, pos.z, false), chunkX, chunkZ, playerSectionY).stream();
|
return collectChunkSections(lookup, chunkProvider.getChunk(pos.x, pos.z, false), chunkX, chunkZ, playerSectionY).stream();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue