From a5e62bf7a970f06cdd99105d821167545b573df4 Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Wed, 1 Jan 2014 20:02:10 -0500 Subject: [PATCH] Fixed factory connection issue --- common/mekanism/common/tileentity/TileEntityFactory.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/mekanism/common/tileentity/TileEntityFactory.java b/common/mekanism/common/tileentity/TileEntityFactory.java index 8a3dbc59f..efcfcf2da 100644 --- a/common/mekanism/common/tileentity/TileEntityFactory.java +++ b/common/mekanism/common/tileentity/TileEntityFactory.java @@ -140,6 +140,10 @@ public class TileEntityFactory extends TileEntityElectricBlock implements IPerip if(!worldObj.isRemote) { + if(ticker == 1) + { + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType().blockID); + } if(updateDelay > 0) { updateDelay--; @@ -598,7 +602,7 @@ public class TileEntityFactory extends TileEntityElectricBlock implements IPerip super.readFromNBT(nbtTags); clientActive = isActive = nbtTags.getBoolean("isActive"); - recipeType = Math.min(5, nbtTags.getInteger("recipeType")); + recipeType = nbtTags.getInteger("recipeType"); recipeTicks = nbtTags.getInteger("recipeTicks"); controlType = RedstoneControl.values()[nbtTags.getInteger("controlType")]; secondaryEnergyStored = nbtTags.getInteger("secondaryEnergyStored");