mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed crash when disguised as a mob whilst wearing an amulet. Fixes #401
This commit is contained in:
parent
fe39258cff
commit
1b2f0ebd6b
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ public class AmuletFeatureRenderer<E extends LivingEntity> implements AccessoryF
|
||||||
|
|
||||||
VertexConsumer consumer = ItemRenderer.getArmorGlintConsumer(renderContext, RenderLayer.getArmorCutoutNoCull(texture), false, false);
|
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);
|
model.render(matrices, consumer, lightUv, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue