From bf3dbe811a5bd3eddaf1ca6151f14f603f037e12 Mon Sep 17 00:00:00 2001 From: last8kings Date: Thu, 4 Jan 2024 22:32:55 -0500 Subject: [PATCH] Fix ore sorter circuit and reformat code --- groovy/postInit/chemistry/OreSorting.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/groovy/postInit/chemistry/OreSorting.groovy b/groovy/postInit/chemistry/OreSorting.groovy index 17916fd9d..e3e3e4073 100644 --- a/groovy/postInit/chemistry/OreSorting.groovy +++ b/groovy/postInit/chemistry/OreSorting.groovy @@ -346,10 +346,14 @@ for (rock in rocks) { int a = 0; for (oreList in rock.oreLists) { def recipe = recipemap('ore_sorter').recipeBuilder(); - recipe.circuitMeta(a) + recipe.circuitMeta(a + 1) recipe.inputs(metaitem(rock.input_rock) * (oreList.size())); for (ore in oreList) { - if (ore.getKey() == 'gregtech:ore_coal_0') { recipe.chancedOutput(item(ore.getKey()) * 2, oreList[ore.getKey()], 0); } else { recipe.chancedOutput(item(ore.getKey()), oreList[ore.getKey()], 0); } + if (ore.getKey() == 'gregtech:ore_coal_0') { + recipe.chancedOutput(item(ore.getKey()) * 2, oreList[ore.getKey()], 0); + } else { + recipe.chancedOutput(item(ore.getKey()), oreList[ore.getKey()], 0); + } } recipe.duration(20); recipe.EUt(Globals.voltAmps[rock.starting_tier + a]);