Merge pull request #833 from codewarrior0/patch-1

Fix #830 - Maint Cover does not emit if rotor needs maint
This commit is contained in:
Blood-Asp 2017-01-04 16:36:04 +01:00 committed by GitHub
commit 868fe1f77d

View file

@ -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;
}
}