Fix item delivery quests sometimes breaking Quest Journal, fixes #1233

This commit is contained in:
PikaMug 2020-04-22 23:29:50 -04:00
parent dea46e2001
commit ed96661c8f

View File

@ -1037,6 +1037,9 @@ public class Quester {
int index = 0;
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
int delivered = getQuestData(quest).itemsDelivered.get(index).getAmount();
if (index < getQuestData(quest).itemsDelivered.size()) {
delivered = getQuestData(quest).itemsDelivered.get(index).getAmount();
}
int toDeliver = is.getAmount();
Integer npc = getCurrentStage(quest).itemDeliveryTargets.get(index);
index++;