From 86cbf9d4221e85dec14300c11393abb325bffcef Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 17 Nov 2024 19:41:18 +0100 Subject: fix: Item predicates not applying unless a vanilla predicate is present --- src/main/kotlin/features/texturepack/BakedOverrideData.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/features/texturepack/BakedOverrideData.kt') diff --git a/src/main/kotlin/features/texturepack/BakedOverrideData.kt b/src/main/kotlin/features/texturepack/BakedOverrideData.kt index c012883..e9391f1 100644 --- a/src/main/kotlin/features/texturepack/BakedOverrideData.kt +++ b/src/main/kotlin/features/texturepack/BakedOverrideData.kt @@ -1,8 +1,14 @@ package moe.nea.firmament.features.texturepack +import net.minecraft.client.render.model.json.ModelOverrideList + interface BakedOverrideData { fun getFirmamentOverrides(): Array? fun setFirmamentOverrides(overrides: Array?) - + companion object{ + @Suppress("CAST_NEVER_SUCCEEDS") + @JvmStatic + fun cast(bakedOverride: ModelOverrideList.BakedOverride): BakedOverrideData = bakedOverride as BakedOverrideData + } } -- cgit