Fix for constant material consumption in auto maintenance hatch

199 bugs in the code, Fix one bug, 254 bug in the code
This commit is contained in:
Technus 2016-10-27 19:29:34 +02:00
parent df0264a9ab
commit 4caeb9ae60

View file

@ -115,7 +115,7 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer) {
if (mAuto && aBaseMetaTileEntity.isServerSide() && aTimer % 100 == 0) {
if (mAuto && aBaseMetaTileEntity.isServerSide() && aTimer % 100 == 0 && !getBaseMetaTileEntity().isActive()) {
boolean tSuccess = true;
ItemStack[] mInputs = new ItemStack[]{ItemList.Duct_Tape.get(4, new Object[]{}),GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Lubricant, 2),GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4),GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2)};
List<ItemStack> aInputs = Arrays.asList(mInventory);