Fix #830 - Maint Cover does not emit if rotor needs maint

Also change the condition back to 20% durability or less
This commit is contained in:
David Vierra 2016-12-30 23:57:40 -10:00 committed by Technus
parent 8dbbf23f48
commit 648b4c9562

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