Skip to content

Commit

Permalink
Fix ore sorter circuit and reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
last8kings committed Jan 5, 2024
1 parent f048754 commit bf3dbe8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions groovy/postInit/chemistry/OreSorting.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit bf3dbe8

Please sign in to comment.