diff options
author | nea <nea@nea.moe> | 2023-06-11 04:10:11 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-11 04:10:11 +0200 |
commit | 48132982cfe642ab29ba8c57951a2885df0c2990 (patch) | |
tree | eafd481c66e01fab35508ae0afdc5df29f767644 /src/main/kotlin/moe/nea/firmament | |
parent | 99fcad8360c3ac7755d70e581c6e2d63e8c49282 (diff) | |
download | firmament-48132982cfe642ab29ba8c57951a2885df0c2990.tar.gz firmament-48132982cfe642ab29ba8c57951a2885df0c2990.tar.bz2 firmament-48132982cfe642ab29ba8c57951a2885df0c2990.zip |
Make copies of items with replacement data
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/repo/ItemCache.kt | 1 |
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)) } |