From 183c68c060ecc6a3f91a1025ac28ae1075b1325b Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Wed, 17 Sep 2014 22:51:47 +0200 Subject: [PATCH] Update smeltery construction clientside too to get unsynchronized data when construction is in flux. --- src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java index d2328dea..cdbe1888 100644 --- a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java +++ b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java @@ -641,7 +641,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci { boolean foundTank = false; int iter = 0; - while (!foundTank) + while (!foundTank && iter < lavaTanks.size()) { CoordTuple possibleTank = lavaTanks.get(iter); TileEntity newTankContainer = worldObj.getTileEntity(possibleTank.x, possibleTank.y, possibleTank.z); @@ -1191,7 +1191,8 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci inventory = new ItemStack[maxBlockCapacity]; super.readFromNBT(tags); - validStructure = tags.getBoolean("ValidStructure"); + if(!tags.getBoolean("ValidStructure")) + validStructure = false; // only negative update because we want to do a clientside structure check too internalTemp = tags.getInteger("InternalTemp"); inUse = tags.getBoolean("InUse");