Fixed Bug: #0761 - Molecular Assembler not pushing items out

This commit is contained in:
AlgorithmX2 2014-07-30 00:05:33 -05:00
parent 890f6a5c67
commit 5345f239be

View file

@ -133,6 +133,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
forcePlan = false; forcePlan = false;
myPlan = null; myPlan = null;
myPattern = null; myPattern = null;
pushDirection = ForgeDirection.UNKNOWN;
} }
updateSleepyness(); updateSleepyness();
@ -206,6 +207,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
NBTTagCompound pdata = new NBTTagCompound(); NBTTagCompound pdata = new NBTTagCompound();
pattern.writeToNBT( pdata ); pattern.writeToNBT( pdata );
data.setTag( "myPlan", pdata ); data.setTag( "myPlan", pdata );
data.setInteger( "pushDirection", pushDirection.ordinal() );
} }
} }
@ -230,6 +232,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
{ {
forcePlan = true; forcePlan = true;
myPlan = ph; myPlan = ph;
pushDirection = ForgeDirection.getOrientation( data.getInteger( "pushDirection" ) );
} }
} }
} }
@ -439,7 +442,9 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
{ {
forcePlan = false; forcePlan = false;
myPlan = null; myPlan = null;
pushDirection = ForgeDirection.UNKNOWN;
} }
ejectHeldItems(); ejectHeldItems();
try try