Merge remote-tracking branch 'origin/master'

This commit is contained in:
Teriuihi 2022-09-28 01:14:43 +02:00
commit 88b997daed

View File

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