Skip to content

Commit

Permalink
oh my GOD
Browse files Browse the repository at this point in the history
  • Loading branch information
leijurv authored Sep 29, 2023
1 parent 8193206 commit 91588ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/baritone/utils/BlockStateInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public BlockState get0(int x, int y, int z) { // Mickey resigned
prevCached = region;
cached = region;
}
BlockState type = cached.getBlock(x & 511, y, z & 511);
BlockState type = cached.getBlock(x & 511, y + world.dimensionType().minY(), z & 511);
if (type == null) {
return AIR;
}
Expand Down

3 comments on commit 91588ca

@ZacSharp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holy shit. Now we know for sure nobody ever uses pathThroughCachedOnly.

@leijurv
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if I should go back and cherry pick this to 1.18 for one final release tbh

@ZacSharp
Copy link
Collaborator

@ZacSharp ZacSharp commented on 91588ca Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to cherry pick #4144 #4145 as well.

Please sign in to comment.