Fix for challenges taking all the items

This commit is contained in:
Fabrizio La Rosa 2020-07-11 09:17:30 +02:00
parent d9e1ffeaef
commit ba802f09c1

View File

@ -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;