diff options
author | Linnea Gräf <nea@nea.moe> | 2025-07-06 22:07:47 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-07-06 22:07:47 +0200 |
commit | b40ae8a455d0f338d6fdb709ec830beae66eb8b2 (patch) | |
tree | 080bc68c9c39c39b7bf80f6e22a2815577fd6f55 /src/main/kotlin/features/debug | |
parent | 86176d5afceb619042c29cd80224bbfb93de959c (diff) | |
download | Firmament-b40ae8a455d0f338d6fdb709ec830beae66eb8b2.tar.gz Firmament-b40ae8a455d0f338d6fdb709ec830beae66eb8b2.tar.bz2 Firmament-b40ae8a455d0f338d6fdb709ec830beae66eb8b2.zip |
feat: Add huntrap locker
Diffstat (limited to 'src/main/kotlin/features/debug')
-rw-r--r-- | src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt b/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt index 1ee61e2..5fa57cc 100644 --- a/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt +++ b/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt @@ -173,7 +173,10 @@ class LegacyItemExporter private constructor(var itemStack: ItemStack) { } private fun copyColour() { - if (!itemStack.isIn(ItemTags.DYEABLE)) return + if (!itemStack.isIn(ItemTags.DYEABLE)) { + itemStack.remove(DataComponentTypes.DYED_COLOR) + return + } val leatherTint = itemStack.componentChanges.get(DataComponentTypes.DYED_COLOR)?.getOrNull() ?: return legacyNbt.getOrPutCompound("display").put("color", NbtInt.of(leatherTint.rgb)) } |