Delete saved recipe on machine change(Blood Asp)
This commit is contained in:
parent
aa33e48c88
commit
35f93bee68
1 changed files with 6 additions and 3 deletions
|
@ -159,6 +159,7 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl
|
|||
return aFacing > 1;
|
||||
}
|
||||
|
||||
public String mMachine = "";
|
||||
public boolean checkRecipe(ItemStack aStack) {
|
||||
if (!isCorrectMachinePart(mInventory[1])) {
|
||||
return false;
|
||||
|
@ -194,6 +195,8 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl
|
|||
tTier = 8;
|
||||
}
|
||||
|
||||
if(!mMachine.equals(mInventory[1].getUnlocalizedName()))mLastRecipe=null;
|
||||
mMachine = mInventory[1].getUnlocalizedName();
|
||||
ItemStack[] tInputs = (ItemStack[]) tInputList.toArray(new ItemStack[tInputList.size()]);
|
||||
|
||||
ArrayList<FluidStack> tFluidList = getStoredFluids();
|
||||
|
|
Loading…
Reference in a new issue