Skip to content

Commit

Permalink
Remove the magic numbers (#38)
Browse files Browse the repository at this point in the history
* Fix and actually add the recipes to the crafter and not just to the book

* Remove magic numbers

* spotlessApply (#39)

Really????

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Ethryan and github-actions[bot] authored Jun 27, 2024
1 parent a236e6d commit 962e524
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/main/java/tb/init/TBThaumonomicon.java
Original file line number Diff line number Diff line change
Expand Up @@ -4039,26 +4039,22 @@ public static void setup() {
.add(brazierRec);

// TODO actual recipes
if (Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi")) {
for (int i = 0; i < 12; ++i) ThaumcraftApi.getCraftingRecipes()
.add(shards[i]);
} else {
for (int i = 0; i < 6; ++i) ThaumcraftApi.getCraftingRecipes()
.add(shards[i]);
}

for (int i = 0; i < shards.length; ++i) ThaumcraftApi.getCraftingRecipes()
.add(shards[i]);

for (int i = 0; i < oldRec.length; ++i) ThaumcraftApi.getCraftingRecipes()
.add(oldRec[i]);

for (int i = 0; i < 10; ++i) ThaumcraftApi.getCraftingRecipes()
for (int i = 0; i < toolsRec.length; ++i) ThaumcraftApi.getCraftingRecipes()
.add(toolsRec[i]);

for (int i = 0; i < 7; ++i) {
ThaumcraftApi.getCraftingRecipes()
.add(cBlocks[i]);
ThaumcraftApi.getCraftingRecipes()
.add(cTaintedBlocks[i]);
}
for (int i = 0; i < cBlocks.length; ++i) ThaumcraftApi.getCraftingRecipes()
.add(cBlocks[i]);

for (int i = 0; i < cTaintedBlocks.length; ++i) ThaumcraftApi.getCraftingRecipes()
.add(cTaintedBlocks[i]);

}

public static Aspect getPrimalForLoop(int loopInt) {
Expand Down

0 comments on commit 962e524

Please sign in to comment.