Fixed incompatibility with EntityModelFeatures

This commit is contained in:
Sollace 2023-07-09 15:13:30 +01:00
parent 3f76f6057e
commit 43c6375e43
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -74,6 +74,7 @@ public class PlayerPonyRenderer extends PlayerEntityRenderer implements IPonyRen
@Override
public void render(AbstractClientPlayerEntity entity, float entityYaw, float tickDelta, MatrixStack stack, VertexConsumerProvider renderContext, int lightUv) {
model = manager.getModel(); // EntityModelFeatures: We have to force it to use our models otherwise EMF overrides it and breaks pony rendering
shadowRadius = manager.getShadowScale();
super.render(entity, entityYaw, tickDelta, stack, renderContext, lightUv);
DebugBoundingBoxRenderer.render(manager.getPony(entity), this, entity, stack, renderContext, tickDelta);