mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Fix challenge item take algorithm
This commit is contained in:
parent
94e56d3b10
commit
cb7a442b50
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user