diff options
author | Dream-Master <dream-master@gmx.net> | 2015-12-22 11:42:39 +0100 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2015-12-22 11:42:39 +0100 |
commit | af2f74dadaed2d993b4aa4e3cf8a1e303f23094d (patch) | |
tree | 4627b0778fc88eecb0a171ce8c3b40539389193b /src/main/java/gregtech/loaders/postload | |
parent | 26c684ce022128fe0e790a3388701d15bb4dceeb (diff) | |
download | GT5-Unofficial-af2f74dadaed2d993b4aa4e3cf8a1e303f23094d.tar.gz GT5-Unofficial-af2f74dadaed2d993b4aa4e3cf8a1e303f23094d.tar.bz2 GT5-Unofficial-af2f74dadaed2d993b4aa4e3cf8a1e303f23094d.zip |
increase hot coolant energy output 4x (Blood Asp)
Fix reprocessing exploit (Blood Asp)
Diffstat (limited to 'src/main/java/gregtech/loaders/postload')
-rw-r--r-- | src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java b/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java index 0bd5819474..60433a13bc 100644 --- a/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java @@ -7,6 +7,9 @@ import gregtech.api.enums.*; import gregtech.api.objects.MaterialStack; import gregtech.api.util.*; import gregtech.common.GT_DummyWorld; +import ic2.api.recipe.ILiquidHeatExchangerManager; +import ic2.api.recipe.ILiquidHeatExchangerManager.HeatExchangeProperty; +import ic2.api.recipe.Recipes; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; @@ -17,6 +20,8 @@ import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; import java.util.Arrays; +import java.util.Iterator; +import java.util.Map; //import gregtech.api.enums.TC_Aspects.TC_AspectStack; @@ -1500,5 +1505,29 @@ public class GT_MachineRecipeLoader GT_ModHandler.addAlloySmelterRecipe(tDust1, tDust2, tOutputIngot, (int) tMats[2].mAmount * 50, 16, false); } } + + try { + Map<String, HeatExchangeProperty> tLiqExchange = ic2.api.recipe.Recipes.liquidCooldownManager.getHeatExchangeProperties(); + Iterator<Map.Entry<String, HeatExchangeProperty>> tIterator = tLiqExchange.entrySet().iterator(); + while (tIterator.hasNext()) { + Map.Entry<String, HeatExchangeProperty> tEntry = tIterator.next(); + if(tEntry.getKey().equals("ic2hotcoolant")){ + tIterator.remove(); + Recipes.liquidCooldownManager.addFluid("ic2hotcoolant", "ic2coolant", 80); + } + } + } catch (Throwable e) {/*Do nothing*/} + + try { + Map<String, HeatExchangeProperty> tLiqExchange = ic2.api.recipe.Recipes.liquidHeatupManager.getHeatExchangeProperties(); + Iterator<Map.Entry<String, HeatExchangeProperty>> tIterator = tLiqExchange.entrySet().iterator(); + while (tIterator.hasNext()) { + Map.Entry<String, HeatExchangeProperty> tEntry = tIterator.next(); + if(tEntry.getKey().equals("ic2coolant")){ + tIterator.remove(); + Recipes.liquidHeatupManager.addFluid("ic2coolant", "ic2hotcoolant", 80); + } + } + } catch (Throwable e) {/*Do nothing*/} } } |