Fix item delivery quests sometimes breaking Journal, part 2. Fixes #1254

This commit is contained in:
PikaMug 2020-04-25 14:10:18 -04:00
parent ed52c6990f
commit 0142937f62

View File

@ -1036,7 +1036,7 @@ public class Quester {
}
int index = 0;
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
int delivered = getQuestData(quest).itemsDelivered.get(index).getAmount();
int delivered = 0;
if (index < getQuestData(quest).itemsDelivered.size()) {
delivered = getQuestData(quest).itemsDelivered.get(index).getAmount();
}