mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-25 14:24:37 +00:00
Spring Cleaning (#127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
1544c1bf0d
commit
3b2b31f733
413 files changed
+9272
-17658
No files matched your search
+11
-29
@@ -74,22 +74,11 @@ public class SummoningRegistryComponent {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (ring) {
|
||||
case 1:
|
||||
recipe = ring1;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
recipe = ring2;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
recipe = ring3;
|
||||
break;
|
||||
|
||||
default:
|
||||
recipe = ring1;
|
||||
}
|
||||
recipe = switch (ring) {
|
||||
case 2 -> ring2;
|
||||
case 3 -> ring3;
|
||||
default -> ring1;
|
||||
};
|
||||
|
||||
if (recipe.length != 6) {
|
||||
ItemStack[] newRecipe = new ItemStack[6];
|
||||
@@ -175,19 +164,12 @@ public class SummoningRegistryComponent {
|
||||
}
|
||||
|
||||
public ItemStack[] getRingRecipeForRing(int ring) {
|
||||
switch (ring) {
|
||||
case 1:
|
||||
return ring1;
|
||||
|
||||
case 2:
|
||||
return ring2;
|
||||
|
||||
case 3:
|
||||
return ring3;
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
return switch (ring) {
|
||||
case 1 -> ring1;
|
||||
case 2 -> ring2;
|
||||
case 3 -> ring3;
|
||||
default -> null;
|
||||
};
|
||||
}
|
||||
|
||||
public String getSummoningHelperID() {
|
||||
|
||||
Reference in new issue
Block a user