From ccb58f36e13bc1043f701db1e5271deb89c20140 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Thu, 2 Jan 2020 02:56:23 -0500 Subject: [PATCH] Correct progress display of delivery objs after reload, fixes #1024 --- main/src/main/java/me/blackvein/quests/Quester.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/Quester.java b/main/src/main/java/me/blackvein/quests/Quester.java index 0b4e5ed16..e81b4e873 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -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++; }