Fixed collect drops quest taking too many items
This commit is contained in:
parent
bd1d71c953
commit
b393693f16
|
|
@ -128,11 +128,11 @@ public class CollectDropsQuest extends Quest {
|
|||
.forEach(itemStack -> {
|
||||
if (ref.tmpAmount == 0)
|
||||
return;
|
||||
if (getAmount() > ref.tmpAmount) {
|
||||
itemStack.setAmount(getAmount() - ref.tmpAmount);
|
||||
if (itemStack.getAmount() > ref.tmpAmount) {
|
||||
itemStack.setAmount(itemStack.getAmount() - ref.tmpAmount);
|
||||
ref.tmpAmount = 0;
|
||||
} else {
|
||||
ref.tmpAmount -= getAmount();
|
||||
ref.tmpAmount -= itemStack.getAmount();
|
||||
itemStack.setAmount(0);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user