Fixed Imp. Compressor Dynamite amount possibly becoming zero

This commit is contained in:
Johannes Gäßler 2017-06-17 12:04:33 +02:00
parent 87db8ee099
commit a739167c7f

View file

@ -347,7 +347,7 @@ public class GT_RecipeAdder
}
int tExplosives = aInput2 > 0 ? aInput2 < 64 ? aInput2 : 64 : 1;
int tGunpowder = tExplosives * 2;
int tDynamite = tExplosives/2;
int tDynamite = Math.max(1, tExplosives / 2);
int tTNT = Math.max(1, tExplosives/2);
int tITNT = Math.max(1, tExplosives/4);
//new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2);