From 75acc1d3eb4d392253b1389788a2c75c933307c8 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 30 Dec 2016 23:57:40 -1000 Subject: [PATCH] Fix #830 - Maint Cover does not emit if rotor needs maint Also change the condition back to 20% durability or less --- .../java/gregtech/common/covers/GT_Cover_NeedMaintainance.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java b/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java index 078efee7..1f5c5c2f 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java @@ -44,7 +44,8 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior { ItemStack tTurbine = multi.getRealInventory()[1]; long tMax = GT_MetaGenerated_Tool.getToolMaxDamage(tTurbine); long tCur = GT_MetaGenerated_Tool.getToolDamage(tTurbine); - if(tCur > tMax*8/10); + if(tCur < tMax*2/10) + needsRepair = true; } }