diff --git a/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java b/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java index 652d095..3091ef0 100644 --- a/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java +++ b/src/main/java/com/buuz135/sushigocrafting/client/ClientProxy.java @@ -43,8 +43,10 @@ public static void register() { }).subscribe(); EventManager.mod(EntityRenderersEvent.AddLayers.class).process(event -> { for (String skin : event.getSkins()) { - PlayerRenderer renderer = event.getSkin(skin); - renderer.addLayer(new ContributorsBackRender(renderer)); + var renderer = event.getSkin(skin); + if (renderer instanceof PlayerRenderer playerRenderer) { + playerRenderer.addLayer(new ContributorsBackRender(playerRenderer)); + } } }).subscribe(); EventManager.mod(EntityRenderersEvent.RegisterLayerDefinitions.class).process(event -> {