From 1b2f0ebd6b481e369da7f33e4adf038f6ba2e39e Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 16 Sep 2024 20:11:19 +0100 Subject: [PATCH] Fixed crash when disguised as a mob whilst wearing an amulet. Fixes #401 --- .../unicopia/client/render/AmuletFeatureRenderer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/AmuletFeatureRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/AmuletFeatureRenderer.java index 99bce334..d5a2ffbf 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/AmuletFeatureRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/AmuletFeatureRenderer.java @@ -49,7 +49,9 @@ public class AmuletFeatureRenderer implements AccessoryF VertexConsumer consumer = ItemRenderer.getArmorGlintConsumer(renderContext, RenderLayer.getArmorCutoutNoCull(texture), false, false); - model.setAngles(entity, context.getModel()); + if (context.getModel() instanceof BipedEntityModel) { + model.setAngles(entity, context.getModel()); + } model.render(matrices, consumer, lightUv, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1); } }