diff options
author | Johannes Gäßler <updrn@student.kit.edu> | 2017-07-15 00:49:50 +0200 |
---|---|---|
committer | Johannes Gäßler <updrn@student.kit.edu> | 2017-07-15 00:49:50 +0200 |
commit | f7e33fd402e4212518485d5650e1c0ecaac82937 (patch) | |
tree | e50a3f088ceb4bded46cc06098ed09faf03a4a70 /src/main/java/gregtech | |
parent | 3253175e5f29b0deff080f4225c974b0ca596c1d (diff) | |
download | GT5-Unofficial-f7e33fd402e4212518485d5650e1c0ecaac82937.tar.gz GT5-Unofficial-f7e33fd402e4212518485d5650e1c0ecaac82937.tar.bz2 GT5-Unofficial-f7e33fd402e4212518485d5650e1c0ecaac82937.zip |
Capped the output multiplier of stone dust to 100%.
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/GT_Mod.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java index 109e5f4a20..fd3aab415e 100644 --- a/src/main/java/gregtech/GT_Mod.java +++ b/src/main/java/gregtech/GT_Mod.java @@ -466,7 +466,7 @@ public class GT_Mod implements IGT_Mod { if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelUV", false)) {
GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_UV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[]{" S ", "STS", " S ", 'S', ItemList.Cover_SolarPanel_ZPM, 'T', ItemList.Transformer_UV_ZPM});
}
- double outputMultiplier = GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "StoneDustOutputMultiplier", 0.6);
+ double outputMultiplier = Math.min(GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "StoneDustOutputMultiplier", 0.6), 1.0);
if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "StoneDustCentrifugation", false)) {
int fullChance = (int)(10000 * outputMultiplier);
int[] chances = new int[]{fullChance, fullChance, fullChance, fullChance, fullChance, (int)(5500 * outputMultiplier)};
|