Skip to content

Commit

Permalink
thanks ShiroJR
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Jun 12, 2024
1 parent b69dc72 commit eed1b41
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ public Identifier getTexture(FestiveBallEntity entity) {

@Override
public void render(FestiveBallEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) {
matrices.push();
matrices.translate(0.0f, -1.1f, 0.0f);
matrices.scale(0.8f, 0.8f, 0.8f);
this.model.render(matrices, vertexConsumers.getBuffer(this.model.getLayer(this.getTexture(entity))), light, OverlayTexture.DEFAULT_UV, 654311423);
matrices.pop();
if (entity.age >= 2 || !(this.dispatcher.camera.getFocusedEntity().squaredDistanceTo(entity) < 12.25)) {
matrices.push();
matrices.translate(0.0f, -1.1f, 0.0f);
matrices.scale(0.8f, 0.8f, 0.8f);
this.model.render(matrices, vertexConsumers.getBuffer(this.model.getLayer(this.getTexture(entity))), light, OverlayTexture.DEFAULT_UV, 654311423);
matrices.pop();
}
}
}

0 comments on commit eed1b41

Please sign in to comment.