mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-27 13:15:55 +01:00
Fix item delivery quests sometimes breaking Quest Journal, fixes #1233
This commit is contained in:
parent
dea46e2001
commit
ed96661c8f
@ -1037,6 +1037,9 @@ public class Quester {
|
|||||||
int index = 0;
|
int index = 0;
|
||||||
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
|
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
|
||||||
int delivered = getQuestData(quest).itemsDelivered.get(index).getAmount();
|
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();
|
int toDeliver = is.getAmount();
|
||||||
Integer npc = getCurrentStage(quest).itemDeliveryTargets.get(index);
|
Integer npc = getCurrentStage(quest).itemDeliveryTargets.get(index);
|
||||||
index++;
|
index++;
|
||||||
|
Loading…
Reference in New Issue
Block a user