From f60b96e6016de09c8abdb63e210d28e964909ec7 Mon Sep 17 00:00:00 2001 From: yaohunya <31456652@qq.com> Date: Sat, 24 Aug 2024 01:13:21 +0800 Subject: [PATCH] 1.3 --- pom.xml | 5 +++++ .../java/com/io/yutian/refinesystem/util/ItemStackUtil.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6653a3a..9e529d3 100644 --- a/pom.xml +++ b/pom.xml @@ -67,5 +67,10 @@ 1.12.2-R0.1-SNAPSHOT provided + + com.yaohun.nbtapi + NBT-API + 1.12.2 + diff --git a/src/main/java/com/io/yutian/refinesystem/util/ItemStackUtil.java b/src/main/java/com/io/yutian/refinesystem/util/ItemStackUtil.java index c7b1e35..7ffa7da 100644 --- a/src/main/java/com/io/yutian/refinesystem/util/ItemStackUtil.java +++ b/src/main/java/com/io/yutian/refinesystem/util/ItemStackUtil.java @@ -117,6 +117,7 @@ public class ItemStackUtil { } } } + lore.set(index,newLore); Iterator iterator = lore.iterator(); while (iterator.hasNext()) { String s = iterator.next(); @@ -124,7 +125,6 @@ public class ItemStackUtil { iterator.remove(); } } - lore.add(newLore); itemMeta.setLore(lore); itemStack.setItemMeta(itemMeta); return itemStack;