From 280364865a02aae9ccdecae6ff76fb383b617c75 Mon Sep 17 00:00:00 2001 From: Buuz135 Date: Wed, 21 Aug 2024 13:22:19 +0200 Subject: [PATCH] Fixed contributor render --- gradle.properties | 2 +- .../java/com/buuz135/sushigocrafting/client/ClientProxy.java | 4 ++-- .../sushigocrafting/client/render/ContributorsBackRender.java | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 7746892..e69dc67 100644 --- a/gradle.properties +++ b/gradle.properties @@ -27,7 +27,7 @@ mod_name=Sushi Go Crafting # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=0.6.1 +mod_version=0.6.2 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java b/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java index 6ef588f..1b35eca 100644 --- a/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java +++ b/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java @@ -59,8 +59,8 @@ public static void register() { event.register(ModelResourceLocation.standalone(ResourceLocation.fromNamespaceAndPath(SushiGoCrafting.MOD_ID, "block/tuna_back"))); }).subscribe(); EventManager.mod(ModelEvent.BakingCompleted.class).process(event -> { - SALMON_BACK = event.getModels().get(ResourceLocation.fromNamespaceAndPath(SushiGoCrafting.MOD_ID, "block/salmon_back")); - TUNA_BACK = event.getModels().get(ResourceLocation.fromNamespaceAndPath(SushiGoCrafting.MOD_ID, "block/tuna_back")); + SALMON_BACK = event.getModels().get(ModelResourceLocation.standalone(ResourceLocation.fromNamespaceAndPath(SushiGoCrafting.MOD_ID, "block/salmon_back"))); + TUNA_BACK = event.getModels().get(ModelResourceLocation.standalone(ResourceLocation.fromNamespaceAndPath(SushiGoCrafting.MOD_ID, "block/tuna_back"))); }).subscribe(); } diff --git a/src/main/java/com/buuz135/sushigocrafting/client/render/ContributorsBackRender.java b/src/main/java/com/buuz135/sushigocrafting/client/render/ContributorsBackRender.java index be10293..6f7b4be 100644 --- a/src/main/java/com/buuz135/sushigocrafting/client/render/ContributorsBackRender.java +++ b/src/main/java/com/buuz135/sushigocrafting/client/render/ContributorsBackRender.java @@ -50,6 +50,7 @@ public ContributorsBackRender(RenderLayerParent