aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-11 04:10:11 +0200
committernea <nea@nea.moe>2023-06-11 04:10:11 +0200
commit48132982cfe642ab29ba8c57951a2885df0c2990 (patch)
treeeafd481c66e01fab35508ae0afdc5df29f767644
parent99fcad8360c3ac7755d70e581c6e2d63e8c49282 (diff)
downloadFirmament-48132982cfe642ab29ba8c57951a2885df0c2990.tar.gz
Firmament-48132982cfe642ab29ba8c57951a2885df0c2990.tar.bz2
Firmament-48132982cfe642ab29ba8c57951a2885df0c2990.zip
Make copies of items with replacement data
-rw-r--r--src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt1
1 files changed, 1 insertions, 0 deletions
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))
}