mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-14 14:45:41 +01:00
Correct progress display of delivery objs after reload, fixes #1024
This commit is contained in:
parent
4f76994573
commit
ccb58f36e1
@ -2984,9 +2984,11 @@ public class Quester {
|
||||
int index = 0;
|
||||
for (int amt : deliveryAmounts) {
|
||||
ItemStack is = getCurrentStage(quest).itemsToDeliver.get(index);
|
||||
is.setAmount(amt);
|
||||
ItemStack temp = new ItemStack(is.getType(), amt, is.getDurability());
|
||||
temp.addEnchantments(is.getEnchantments());
|
||||
temp.setItemMeta(is.getItemMeta());
|
||||
if (getQuestData(quest).itemsDelivered.size() > 0) {
|
||||
getQuestData(quest).itemsDelivered.set(index, is);
|
||||
getQuestData(quest).itemsDelivered.set(index, temp);
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user