Fixed lava check inside blast furnace multiblock

This commit is contained in:
drcrazy 2017-09-15 02:10:55 +03:00
parent c43077e640
commit 4ccd3ff290

View file

@ -132,10 +132,10 @@ public class TileIndustrialBlastFurnace extends TilePowerAcceptor implements ITo
// TODO meta fix // TODO meta fix
} }
if (this.world.getBlockState(new BlockPos(location.getX(), location.getY(), location.getZ())) if (this.world.getBlockState(new BlockPos(location.getX(), location.getY() + 1, location.getZ()))
.getBlock().getUnlocalizedName().equals("tile.lava") .getBlock().getUnlocalizedName().equals("tile.lava")
&& this.world && this.world
.getBlockState(new BlockPos(location.getX(), location.getY() + 1, location.getZ())) .getBlockState(new BlockPos(location.getX(), location.getY() + 2, location.getZ()))
.getBlock().getUnlocalizedName().equals("tile.lava")) { .getBlock().getUnlocalizedName().equals("tile.lava")) {
heat += 500; heat += 500;
} }