diff options
author | Linnea Gräf <nea@nea.moe> | 2025-07-06 21:25:42 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-07-06 21:25:42 +0200 |
commit | 86176d5afceb619042c29cd80224bbfb93de959c (patch) | |
tree | 5e355b92aa8653ae2b4f9d30ee958963cd1622fe /src | |
parent | fb730fa1a6683502efda48882acd438543016b74 (diff) | |
download | Firmament-86176d5afceb619042c29cd80224bbfb93de959c.tar.gz Firmament-86176d5afceb619042c29cd80224bbfb93de959c.tar.bz2 Firmament-86176d5afceb619042c29cd80224bbfb93de959c.zip |
fix: incompatibilty in item exporter with rei
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/features/debug/itemeditor/LegacyItemExporter.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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)) } |