From 604e8d4335a15188e380c100be29357164b38837 Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Fri, 20 Feb 2015 00:45:03 -0300 Subject: [PATCH] fix Quarry not chunkloading in dimensions other than overworld, fixes #2417 and maybe #2322 --- common/buildcraft/BuildCraftFactory.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/common/buildcraft/BuildCraftFactory.java b/common/buildcraft/BuildCraftFactory.java index c690b365..10026e1b 100644 --- a/common/buildcraft/BuildCraftFactory.java +++ b/common/buildcraft/BuildCraftFactory.java @@ -115,12 +115,10 @@ public class BuildCraftFactory extends BuildCraftMod { int quarryY = ticket.getModData().getInteger("quarryY"); int quarryZ = ticket.getModData().getInteger("quarryZ"); - if (world.blockExists(quarryX, quarryY, quarryZ)) { - Block block = world.getBlock(quarryX, quarryY, quarryZ); - if (block == quarryBlock) { - TileQuarry tq = (TileQuarry) world.getTileEntity(quarryX, quarryY, quarryZ); - tq.forceChunkLoading(ticket); - } + Block block = world.getBlock(quarryX, quarryY, quarryZ); + if (block == quarryBlock) { + TileQuarry tq = (TileQuarry) world.getTileEntity(quarryX, quarryY, quarryZ); + tq.forceChunkLoading(ticket); } } } @@ -133,11 +131,9 @@ public class BuildCraftFactory extends BuildCraftMod { int quarryY = ticket.getModData().getInteger("quarryY"); int quarryZ = ticket.getModData().getInteger("quarryZ"); - if (world.blockExists(quarryX, quarryY, quarryZ)) { - Block block = world.getBlock(quarryX, quarryY, quarryZ); - if (block == quarryBlock) { - validTickets.add(ticket); - } + Block block = world.getBlock(quarryX, quarryY, quarryZ); + if (block == quarryBlock) { + validTickets.add(ticket); } } return validTickets;