diff --git a/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java b/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java index f19a9af1..0535bf01 100644 --- a/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java +++ b/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java @@ -166,12 +166,13 @@ public class Challenge { toRemove -= jis.getAmount(); jis.setAmount(0); } else { - jis.setAmount(is.getAmount() - toRemove); + jis.setAmount(jis.getAmount() - toRemove); toRemove = 0; } } if(toRemove <= 0) { p.updateInventory(); + break; } } }