From 1a33d9462dbd9825ececa5f8b81455cd8fdfdaa8 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Mon, 6 Aug 2018 15:52:12 -0700 Subject: [PATCH] Fix unneeded method call on BlockStateInterface internals --- src/main/java/baritone/bot/utils/BlockStateInterface.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/baritone/bot/utils/BlockStateInterface.java b/src/main/java/baritone/bot/utils/BlockStateInterface.java index 9df8090d..354c029c 100644 --- a/src/main/java/baritone/bot/utils/BlockStateInterface.java +++ b/src/main/java/baritone/bot/utils/BlockStateInterface.java @@ -40,7 +40,7 @@ public class BlockStateInterface { * @return Whether or not the block is water */ public static boolean isWater(BlockPos bp) { - return isWater(BlockStateInterface.get(bp).getBlock()); + return isWater(BlockStateInterface.getBlock(bp)); } public static boolean isLava(Block b) { @@ -58,7 +58,7 @@ public class BlockStateInterface { } public static boolean isLiquid(BlockPos p) { - return isLiquid(BlockStateInterface.get(p).getBlock()); + return isLiquid(BlockStateInterface.getBlock(p)); } public static boolean isFlowing(IBlockState state) { @@ -68,7 +68,7 @@ public class BlockStateInterface { } public static boolean isAir(BlockPos pos) { - return BlockStateInterface.get(pos).getBlock().equals(Blocks.AIR); + return BlockStateInterface.getBlock(pos).equals(Blocks.AIR); } }