Fix unneeded method call on BlockStateInterface internals

This commit is contained in:
Howard Stark 2018-08-06 15:52:12 -07:00
parent 0fd11f80f5
commit 1a33d9462d
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}