This commit is contained in:
Leijurv
2018-09-07 21:32:25 -07:00
parent 9052781889
commit 132e277388
27 changed files with 114 additions and 68 deletions

View File

@@ -35,8 +35,9 @@ public class BlockStateInterface implements Helper {
public static IBlockState get(BlockPos pos) { // wrappers for chunk caching capability
// Invalid vertical position
if (pos.getY() < 0 || pos.getY() >= 256)
if (pos.getY() < 0 || pos.getY() >= 256) {
return Blocks.AIR.getDefaultState();
}
if (!Baritone.settings().pathThroughCachedOnly.get()) {
Chunk cached = prev;