From b2f32b27b25d6275510905ec2c3683c4f390a95b Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Thu, 1 Sep 2016 12:21:33 +1000 Subject: + Added some better support for the 5.9 branch of Gregtech. > Added variable method classes which allow 5.7, 5.8 and 5.9 code segments to co-exist without compile or static link errors. --- .../miscutil/xmod/gregtech/api/util/GregtechRecipeRegistrator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Java/miscutil/xmod/gregtech/api/util') diff --git a/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipeRegistrator.java b/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipeRegistrator.java index b402fe500f..6e035fdd80 100644 --- a/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipeRegistrator.java +++ b/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipeRegistrator.java @@ -17,6 +17,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import miscutil.core.util.gregtech.five.GregtechVersionRecipeHandler; import miscutil.xmod.gregtech.api.enums.GregtechOrePrefixes; import miscutil.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials; import miscutil.xmod.gregtech.api.objects.GregtechItemData; @@ -171,7 +172,7 @@ public class GregtechRecipeRegistrator { aMaterialAmount /= aStack.stackSize; if (aAllowAlloySmelter) - GT_ModHandler.addSmeltingAndAlloySmeltingRecipe(GT_Utility.copyAmount(1, aStack), GregtechOreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount)); + GregtechVersionRecipeHandler.addSmeltingAndAlloySmeltingRecipe(GT_Utility.copyAmount(1, aStack), GregtechOreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount)); else GT_ModHandler.addSmeltingRecipe(GT_Utility.copyAmount(1, aStack), GregtechOreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount)); } -- cgit