Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
88b997daed
|
|
@ -128,11 +128,11 @@ public class CollectDropsQuest extends Quest {
|
||||||
.forEach(itemStack -> {
|
.forEach(itemStack -> {
|
||||||
if (ref.tmpAmount == 0)
|
if (ref.tmpAmount == 0)
|
||||||
return;
|
return;
|
||||||
if (getAmount() > ref.tmpAmount) {
|
if (itemStack.getAmount() > ref.tmpAmount) {
|
||||||
itemStack.setAmount(getAmount() - ref.tmpAmount);
|
itemStack.setAmount(itemStack.getAmount() - ref.tmpAmount);
|
||||||
ref.tmpAmount = 0;
|
ref.tmpAmount = 0;
|
||||||
} else {
|
} else {
|
||||||
ref.tmpAmount -= getAmount();
|
ref.tmpAmount -= itemStack.getAmount();
|
||||||
itemStack.setAmount(0);
|
itemStack.setAmount(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user