From 86176d5afceb619042c29cd80224bbfb93de959c Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 6 Jul 2025 21:25:42 +0200 Subject: fix: incompatibilty in item exporter with rei --- src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt b/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt index 4c06118..1ee61e2 100644 --- a/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt +++ b/src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt @@ -15,6 +15,7 @@ import net.minecraft.nbt.NbtInt import net.minecraft.nbt.NbtList import net.minecraft.nbt.NbtOps import net.minecraft.nbt.NbtString +import net.minecraft.registry.tag.ItemTags import net.minecraft.text.Text import net.minecraft.util.Unit import moe.nea.firmament.Firmament @@ -172,6 +173,7 @@ class LegacyItemExporter private constructor(var itemStack: ItemStack) { } private fun copyColour() { + if (!itemStack.isIn(ItemTags.DYEABLE)) return val leatherTint = itemStack.componentChanges.get(DataComponentTypes.DYED_COLOR)?.getOrNull() ?: return legacyNbt.getOrPutCompound("display").put("color", NbtInt.of(leatherTint.rgb)) } -- cgit