aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/inventory
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-10-19 01:36:38 +0200
committerLinnea Gräf <nea@nea.moe>2025-10-19 01:36:38 +0200
commit8346c05bbfc6d227f3f02c7ee5ec5ceb8f7e4348 (patch)
treeabd765aff43edd19db6ba147d7cf8e1d3145e873 /src/main/kotlin/features/inventory
parent28c3ba952d69c8a654301c9211d536493513fdd5 (diff)
downloadFirmament-8346c05bbfc6d227f3f02c7ee5ec5ceb8f7e4348.tar.gz
Firmament-8346c05bbfc6d227f3f02c7ee5ec5ceb8f7e4348.tar.bz2
Firmament-8346c05bbfc6d227f3f02c7ee5ec5ceb8f7e4348.zip
feat: add skin preview exporter
Diffstat (limited to 'src/main/kotlin/features/inventory')
-rw-r--r--src/main/kotlin/features/inventory/buttons/InventoryButton.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/features/inventory/buttons/InventoryButton.kt b/src/main/kotlin/features/inventory/buttons/InventoryButton.kt
index 0a1121d..e31f4a0 100644
--- a/src/main/kotlin/features/inventory/buttons/InventoryButton.kt
+++ b/src/main/kotlin/features/inventory/buttons/InventoryButton.kt
@@ -10,6 +10,7 @@ import net.minecraft.client.gui.DrawContext
import net.minecraft.command.CommandRegistryAccess
import net.minecraft.command.argument.ItemStackArgumentType
import net.minecraft.item.ItemStack
+import net.minecraft.item.Items
import net.minecraft.resource.featuretoggle.FeatureFlags
import net.minecraft.util.Identifier
import moe.nea.firmament.repo.ExpensiveItemCacheApi
@@ -77,7 +78,7 @@ data class InventoryButton(
}
}
}
- if (itemStack.isBroken)
+ if (itemStack.item == Items.PAINTING)
ErrorUtil.logError("created broken itemstack for inventory button $icon: $itemStack")
return itemStack
}