From b40ae8a455d0f338d6fdb709ec830beae66eb8b2 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 6 Jul 2025 22:07:47 +0200 Subject: feat: Add huntrap locker --- src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/features/debug') 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)) } -- cgit