Skip to content

Commit

Permalink
#1456: Fix inverted logic in CraftCrafterView#setSlotDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Holder authored and md-5 committed Jul 27, 2024
1 parent 682a678 commit d53d0d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public boolean isPowered() {
public void setSlotDisabled(final int slot, final boolean disabled) {
Preconditions.checkArgument(slot >= 0 && slot < 9, "Invalid slot index %s for Crafter", slot);

container.setSlotState(slot, disabled);
container.setSlotState(slot, !disabled);
}
}

0 comments on commit d53d0d0

Please sign in to comment.