Don't tick disguises if the game is paused

This commit is contained in:
Sollace 2024-05-23 20:00:17 +01:00
parent e22f181f41
commit 6175605069
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -36,7 +36,9 @@ class EntityDisguiseRenderer {
double x, double y, double z, double x, double y, double z,
float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) { float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) {
int fireTicks = pony.asEntity().doesRenderOnFire() ? 1 : 0; int fireTicks = pony.asEntity().doesRenderOnFire() ? 1 : 0;
if (!delegate.client.isPaused()) {
disguise.update(pony, false); disguise.update(pony, false);
}
EntityAppearance ve = disguise.getDisguise(); EntityAppearance ve = disguise.getDisguise();
Entity e = ve.getAppearance(); Entity e = ve.getAppearance();