Fixed crash when disguised as a mob whilst wearing an amulet. Fixes #401

This commit is contained in:
Sollace 2024-09-16 20:11:19 +01:00
parent fe39258cff
commit 1b2f0ebd6b
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -49,7 +49,9 @@ public class AmuletFeatureRenderer<E extends LivingEntity> implements AccessoryF
VertexConsumer consumer = ItemRenderer.getArmorGlintConsumer(renderContext, RenderLayer.getArmorCutoutNoCull(texture), false, false);
if (context.getModel() instanceof BipedEntityModel) {
model.setAngles(entity, context.getModel());
}
model.render(matrices, consumer, lightUv, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1);
}
}