From 4d22d4e01799bdb8282b735e25a50f723720a030 Mon Sep 17 00:00:00 2001 From: Yang Xizhi <60341015+GlodBlock@users.noreply.github.com> Date: Sat, 9 Jul 2022 20:30:48 +0800 Subject: Standardization of GT5u Chemical Recipes (#1062) * chemical rebalance 1 item unit = how many atom in it 1 fluid unit = 1b * remove some tiny dust * remove crop tiny dust * Na2S * Acetone chain rework and fix COx * electis balance * Fix cell amount * more fix * acid, rubber and epoxy * no * roast thing * pbi * number wise unnerf roast recipe * uranium, indium, titanium lossless cycle * salts * clay * silicon * derp * corret sodium carbonate chemical formula * revert lossless indium * fix * scheelite * silicon line * ore dust * kevlar line * fix * don't change register name * fix * nerf NaOH electrolysis recipe to match water * fix Co-authored-by: Pnc6lx <2458894429@qq.com> Co-authored-by: Martin Robertz Co-authored-by: miozune --- .../GT_MetaTileEntity_LargeChemicalReactor.java | 35 ++-------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'src/main/java/gregtech/common/tileentities') diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java index 6634124248..55d0d10ed9 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java @@ -138,43 +138,12 @@ public class GT_MetaTileEntity_LargeChemicalReactor extends GT_MetaTileEntity_En if (!mSingleRecipeCheck.checkRecipeInputsSingleStack(true)) { return false; } - tRecipe = mSingleRecipeCheck.getRecipe(); } else { ArrayList tInputList = getStoredInputs(); - int tInputList_sS = tInputList.size(); - for (int i = 0; i < tInputList_sS - 1; i++) { - for (int j = i + 1; j < tInputList_sS; j++) { - if (GT_Utility.areStacksEqual(tInputList.get(i), tInputList.get(j))) { - if (tInputList.get(i).stackSize >= tInputList.get(j).stackSize) { - tInputList.remove(j--); - tInputList_sS = tInputList.size(); - } else { - tInputList.remove(i--); - tInputList_sS = tInputList.size(); - break; - } - } - } - } - ItemStack[] inputs = tInputList.toArray(new ItemStack[0]); - ArrayList tFluidList = getStoredFluids(); - int tFluidList_sS = tFluidList.size(); - for (int i = 0; i < tFluidList_sS - 1; i++) { - for (int j = i + 1; j < tFluidList_sS; j++) { - if (GT_Utility.areFluidsEqual(tFluidList.get(i), tFluidList.get(j))) { - if (tFluidList.get(i).amount >= tFluidList.get(j).amount) { - tFluidList.remove(j--); - tFluidList_sS = tFluidList.size(); - } else { - tFluidList.remove(i--); - tFluidList_sS = tFluidList.size(); - break; - } - } - } - } + + ItemStack[] inputs = tInputList.toArray(new ItemStack[0]); FluidStack[] fluids = tFluidList.toArray(new FluidStack[0]); if (inputs.length == 0 && fluids.length == 0) { -- cgit