Fixed a factory transfer issue
This commit is contained in:
parent
f78c467fd3
commit
187403e72c
2 changed files with 4 additions and 0 deletions
|
@ -278,6 +278,7 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
|
|||
if(tileEntity instanceof TileEntityFactory)
|
||||
{
|
||||
((TileEntityFactory)tileEntity).recipeType = getRecipeType(stack);
|
||||
world.notifyBlocksOfNeighborChange(x, y, z, tileEntity.getBlockType().blockID);
|
||||
}
|
||||
|
||||
if(tileEntity instanceof ISustainedTank)
|
||||
|
|
|
@ -144,6 +144,7 @@ public class TileEntityFactory extends TileEntityElectricBlock implements IPerip
|
|||
{
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType().blockID);
|
||||
}
|
||||
|
||||
if(updateDelay > 0)
|
||||
{
|
||||
updateDelay--;
|
||||
|
@ -188,6 +189,8 @@ public class TileEntityFactory extends TileEntityElectricBlock implements IPerip
|
|||
recipeType = toSet.ordinal();
|
||||
setSecondaryEnergy(0);
|
||||
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType().blockID);
|
||||
|
||||
MekanismUtils.saveChunk(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue