Skip to content

Commit

Permalink
Fix wrong quantity when depositing all
Browse files Browse the repository at this point in the history
When the item is not stackable
  • Loading branch information
elgbar committed Mar 3, 2024
1 parent 70447a6 commit d1d639d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/no/elg/ii/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static int getNumberFromMenuOption(String text, @Nonnull Widget widget) {
String substring = text.substring(text.indexOf('-') + 1);
int quantity;
if ("All".equals(substring)) {
quantity = widget.getItemQuantity();
quantity = Integer.MAX_VALUE;
} else if ("All-but-1".equalsIgnoreCase(substring)) {
quantity = widget.getItemQuantity() - 1;
} else {
Expand Down

0 comments on commit d1d639d

Please sign in to comment.