From 4caeb9ae609049601cfe04c3bd3a7d858716e369 Mon Sep 17 00:00:00 2001 From: Technus Date: Thu, 27 Oct 2016 19:29:34 +0200 Subject: [PATCH] Fix for constant material consumption in auto maintenance hatch 199 bugs in the code, Fix one bug, 254 bug in the code --- .../implementations/GT_MetaTileEntity_Hatch_Maintenance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java index e22d805f..12447ebc 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java @@ -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 aInputs = Arrays.asList(mInventory);