mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +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;
|
||||
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++;
|
||||
|
Loading…
Reference in New Issue
Block a user