mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-25 08:51:33 +01:00
Fix for challenges taking all the items
This commit is contained in:
parent
d9e1ffeaef
commit
ba802f09c1
@ -186,7 +186,7 @@ public class Challenge {
|
||||
if(isItem) {
|
||||
if(jis.getAmount() <= toRemove) {
|
||||
toRemove -= jis.getAmount();
|
||||
p.getInventory().remove(jis);
|
||||
p.getInventory().removeItem(jis);
|
||||
} else {
|
||||
jis.setAmount(jis.getAmount() - toRemove);
|
||||
toRemove = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user