Update smeltery construction clientside too to get unsynchronized data when construction is in flux.

This commit is contained in:
Bernhard Bonigl committed 2014-09-17 22:51:47 +02:00
1 parent 4a9c383dd8
commit 183c68c060
1 file changed
+3 -2
@@ -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");