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 8da500e4..d1f729ad 100644 --- a/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java +++ b/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java @@ -1,6 +1,7 @@ package com.songoda.skyblock.challenge.challenge; import com.songoda.core.compatibility.CompatibleMaterial; +import com.songoda.core.compatibility.ServerVersion; import com.songoda.core.hooks.EconomyManager; import com.songoda.skyblock.SkyBlock; import com.songoda.skyblock.bank.BankManager; @@ -187,7 +188,7 @@ public class Challenge { if(isItem) { if(jis.getAmount() <= toRemove) { toRemove -= jis.getAmount(); - jis.setAmount(0); + p.getInventory().remove(jis); } else { jis.setAmount(jis.getAmount() - toRemove); toRemove = 0;