From 48132982cfe642ab29ba8c57951a2885df0c2990 Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 11 Jun 2023 04:10:11 +0200 Subject: Make copies of items with replacement data --- src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin/moe/nea') diff --git a/src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt b/src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt index 681dba5..72a779c 100644 --- a/src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt +++ b/src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt @@ -114,6 +114,7 @@ object ItemCache : IReloadable { cache[this.skyblockItemId] = s } if (!loreReplacements.isNullOrEmpty()) { + s = s.copy()!! s.applyLoreReplacements(loreReplacements) s.setCustomName(s.name.applyLoreReplacements(loreReplacements)) } -- cgit