Skip to content

Commit

Permalink
Fix tool belt salvage not having a max level (#5145)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Dec 13, 2023
1 parent 921c06e commit 75695fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"abilities": 1
},
"modifier": "tconstruct:tool_belt",
"min_level": 1
"min_level": 1,
"max_level": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ private void addModifierRecipes(Consumer<FinishedRecipe> consumer) {
.setMaxLevel(level);
if (level == 1) {
builder.setSlots(SlotType.ABILITY, 1);
builder.setSalvageLevelRange(1, 1);
builder.saveSalvage(consumer, prefix(ModifierIds.toolBelt, abilitySalvage));
} else {
builder.setRequirements(ModifierMatch.entry(ModifierIds.toolBelt, level - 1));
Expand Down

0 comments on commit 75695fd

Please sign in to comment.