increase hot coolant energy output 4x (Blood Asp)

Fix reprocessing exploit (Blood Asp)
This commit is contained in:
Dream-Master 2015-12-22 11:42:39 +01:00
parent 26c684ce02
commit af2f74dada
3 changed files with 31 additions and 2 deletions

View file

@ -244,7 +244,7 @@ public class GT_RecipeRegistrator {
if (aAllowHammer) for (MaterialStack tMaterial : aData.getAllMaterialStacks())
if (tMaterial.mMaterial.contains(SubTag.CRYSTAL) && !tMaterial.mMaterial.contains(SubTag.METAL)) {
if (RA.addForgeHammerRecipe(GT_Utility.copyAmount(1, aStack), GT_OreDictUnificator.getGem(aData.mMaterial), 200, 32))
if (RA.addForgeHammerRecipe(GT_Utility.copyAmount(1, aStack), GT_OreDictUnificator.getDust(aData.mMaterial), 200, 32))
break;
}
ItemStack tDust = GT_OreDictUnificator.getDust(aData.mMaterial);

View file

@ -99,7 +99,7 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc
superheated_threshold /= 4;
do_lava = true;
} else if (mInputHotFluidHatch.getFluid().isFluidEqual(FluidRegistry.getFluidStack("ic2hotcoolant", 1))) {
steam_output_multiplier = 0.5f;
steam_output_multiplier = 2f;
} else {
// If we're working with neither, fail out
return false;

View file

@ -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*/}
}
}