From 8b2096ea78d135b400a73b94712b8c4af2f4b4f5 Mon Sep 17 00:00:00 2001 From: Technus Date: Fri, 16 Dec 2016 17:05:20 +0100 Subject: [PATCH] Fix gem recipes this time for real. --- .../loaders/oreprocessing/ProcessingGemExquisite.java | 6 ++++-- .../loaders/oreprocessing/ProcessingGemFlawless.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemExquisite.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemExquisite.java index d2628823..6b29faf4 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemExquisite.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemExquisite.java @@ -19,7 +19,9 @@ public class ProcessingGemExquisite implements gregtech.api.interfaces.IOreRecip if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING)) GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 3L), GT_OreDictUnificator.getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount * 3L), (int) Math.max(aMaterial.getMass() * 10L, 1L), 16); GT_Values.RA.addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), 64, 16); - for(ItemStack is: OreDictionary.getOres("craftingLens"+aMaterial.mColor.mName.replace(" ",""))) - GT_Values.RA.addLaserEngraverRecipe(GT_OreDictUnificator.get(OrePrefixes.gemFlawless,aMaterial,3L), is,GT_Utility.copyAmount(0L, new Object[]{aStack}),2400,2000); + for(ItemStack is: OreDictionary.getOres("craftingLens"+aMaterial.mColor.mName.replace(" ",""))){ + is.stackSize=0; + GT_Values.RA.addLaserEngraverRecipe(GT_OreDictUnificator.get(OrePrefixes.gemFlawless,aMaterial,3L), is,GT_Utility.copyAmount(1L, new Object[]{aStack}),2400,2000); + } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemFlawless.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemFlawless.java index fd2c8017..92b99fc5 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemFlawless.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGemFlawless.java @@ -19,7 +19,9 @@ public class ProcessingGemFlawless implements gregtech.api.interfaces.IOreRecipe if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING)) GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), GT_OreDictUnificator.getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount), (int) Math.max(aMaterial.getMass() * 5L, 1L), 16); GT_Values.RA.addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), 64, 16); - for(ItemStack is:OreDictionary.getOres("craftingLens"+aMaterial.mColor.mName.replace(" ",""))) - GT_Values.RA.addLaserEngraverRecipe(GT_OreDictUnificator.get(OrePrefixes.gem,aMaterial,3L), is,GT_Utility.copyAmount(0L, new Object[]{aStack}),1200,480); + for(ItemStack is:OreDictionary.getOres("craftingLens"+aMaterial.mColor.mName.replace(" ",""))) { + is.stackSize=0; + GT_Values.RA.addLaserEngraverRecipe(GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 3L), is, GT_Utility.copyAmount(1L, new Object[]{aStack}), 1200, 480); + } } }