From ef4de2b15997d2cb7de8ce74e1b96d3da09186f8 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 9 Sep 2018 09:55:59 -0700 Subject: [PATCH] oh look and another bug --- src/main/java/baritone/utils/BlockStateInterface.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/utils/BlockStateInterface.java b/src/main/java/baritone/utils/BlockStateInterface.java index cf56737a..9a7c7028 100644 --- a/src/main/java/baritone/utils/BlockStateInterface.java +++ b/src/main/java/baritone/utils/BlockStateInterface.java @@ -86,10 +86,10 @@ public class BlockStateInterface implements Helper { CachedRegion region = world.cache.getRegion(x >> 9, z >> 9); if (region != null) { prevCached = region; - } - IBlockState type = region.getBlock(x & 511, y, z & 511); - if (type != null) { - return type; + IBlockState type = region.getBlock(x & 511, y, z & 511); + if (type != null) { + return type; + } } } return AIR;