Skip to content

Commit

Permalink
fix a bug where you could only add terminals to the wut that already …
Browse files Browse the repository at this point in the history
…existed in the wut
  • Loading branch information
Mari023 committed Jun 17, 2024
1 parent 7ac39ed commit c1b021e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- fix a bug where you could only add terminals to the wut that already existed in the wut
2 changes: 1 addition & 1 deletion src/main/java/de/mari_023/ae2wtlib/wut/recipe/Upgrade.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public WTDefinition getTerminalDefinition() {
public boolean matches(CraftingInput inv, Level world) {
ItemStack wut = InputHelper.getInputStack(inv, InputHelper.WUT);
return !InputHelper.getInputStack(inv, terminal).isEmpty() && !wut.isEmpty() && inv.ingredientCount() == 2
&& wut.get(terminalDefinition.componentType()) != null;
&& wut.get(terminalDefinition.componentType()) == null;
}

@Override
Expand Down

0 comments on commit c1b021e

Please sign in to comment.