aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/debug
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-07-06 22:07:47 +0200
committerLinnea Gräf <nea@nea.moe>2025-07-06 22:07:47 +0200
commitb40ae8a455d0f338d6fdb709ec830beae66eb8b2 (patch)
tree080bc68c9c39c39b7bf80f6e22a2815577fd6f55 /src/main/kotlin/features/debug
parent86176d5afceb619042c29cd80224bbfb93de959c (diff)
downloadFirmament-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.kt5
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))
}