mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fixed model visibility not updating for mobs
This commit is contained in:
parent
4904c78e01
commit
3322e7eaff
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ public abstract class AbstractPonyRenderer<T extends MobEntity, M extends Entity
|
|||
@Override
|
||||
public void render(T entity, float entityYaw, float tickDelta, MatrixStack stack, VertexConsumerProvider renderContext, int lightUv) {
|
||||
manager.preRender(entity, ModelAttributes.Mode.THIRD_PERSON);
|
||||
if (manager.getModels().body() instanceof BipedEntityModel model) {
|
||||
model.setVisible(true);
|
||||
}
|
||||
super.render(entity, entityYaw, tickDelta, stack, renderContext, lightUv);
|
||||
DebugBoundingBoxRenderer.render(getEntityPony(entity), this, entity, stack, renderContext, tickDelta);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue