aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJohannes Gäßler <updrn@student.kit.edu>2017-06-17 12:04:33 +0200
committerJohannes Gäßler <updrn@student.kit.edu>2017-06-17 12:04:33 +0200
commita739167c7f28c65b6f66960150791eb9d1181e29 (patch)
tree0fec394bb4aa7c64953122e523f0b7ffb4da5679 /src/main
parent87db8ee099925c8bb8b5cf6a0a5db4895d0bda25 (diff)
downloadGT5-Unofficial-a739167c7f28c65b6f66960150791eb9d1181e29.tar.gz
GT5-Unofficial-a739167c7f28c65b6f66960150791eb9d1181e29.tar.bz2
GT5-Unofficial-a739167c7f28c65b6f66960150791eb9d1181e29.zip
Fixed Imp. Compressor Dynamite amount possibly becoming zero
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/gregtech/common/GT_RecipeAdder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java
index 189cfe9d53..1726d15357 100644
--- a/src/main/java/gregtech/common/GT_RecipeAdder.java
+++ b/src/main/java/gregtech/common/GT_RecipeAdder.java
@@ -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);