From 44ece7c510df5163ecc7a3ad83e755de66dd7f69 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 9 Sep 2018 09:54:09 -0700 Subject: [PATCH] prevent double lookup --- src/main/java/baritone/utils/BlockStateInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/BlockStateInterface.java b/src/main/java/baritone/utils/BlockStateInterface.java index bd3186e1..cf56737a 100644 --- a/src/main/java/baritone/utils/BlockStateInterface.java +++ b/src/main/java/baritone/utils/BlockStateInterface.java @@ -87,7 +87,7 @@ public class BlockStateInterface implements Helper { if (region != null) { prevCached = region; } - IBlockState type = world.cache.getBlock(x, y, z); + IBlockState type = region.getBlock(x & 511, y, z & 511); if (type != null) { return type; }