aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Vierra <codewarrior@hawaii.rr.com>2016-12-30 23:57:40 -1000
committerGitHub <noreply@github.com>2016-12-30 23:57:40 -1000
commit75acc1d3eb4d392253b1389788a2c75c933307c8 (patch)
treef0d0480868ceba4976bc3506cfab310d56c27934 /src
parentc69a768640eb947b3050119e6fa0aa2e264ff32a (diff)
downloadGT5-Unofficial-75acc1d3eb4d392253b1389788a2c75c933307c8.tar.gz
GT5-Unofficial-75acc1d3eb4d392253b1389788a2c75c933307c8.tar.bz2
GT5-Unofficial-75acc1d3eb4d392253b1389788a2c75c933307c8.zip
Fix #830 - Maint Cover does not emit if rotor needs maint
Also change the condition back to 20% durability or less
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java3
1 files changed, 2 insertions, 1 deletions
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 078efee7da..1f5c5c2fbb 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;
}
}