Correct progress display of delivery objs after reload, fixes #1024

This commit is contained in:
PikaMug 2020-01-02 02:56:23 -05:00
parent 4f76994573
commit ccb58f36e1

View File

@ -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++;
}