Fixed disguises not being inverted by negative gravity

This commit is contained in:
Sollace 2020-09-24 19:31:40 +02:00
parent 2bb6df8b1b
commit a525a9127c
2 changed files with 1 additions and 2 deletions

View file

@ -33,7 +33,6 @@ public class WorldRenderDelegate {
matrices.pop(); matrices.pop();
flipAngles(pony.getOwner()); flipAngles(pony.getOwner());
} }
} }

View file

@ -45,7 +45,6 @@ abstract class MixinEntityRenderDispatcher {
Entity e = effect.getDisguise(); Entity e = effect.getDisguise();
if (e != null) { if (e != null) {
WorldRenderDelegate.INSTANCE.afterEntityRender(Pony.of((PlayerEntity)entity), matrices);
info.cancel(); info.cancel();
if (DisguiseSpell.isAttachedEntity(e) && (x != 0 || y != 0 || z != 0)) { if (DisguiseSpell.isAttachedEntity(e) && (x != 0 || y != 0 || z != 0)) {
@ -58,6 +57,7 @@ abstract class MixinEntityRenderDispatcher {
} }
((EntityRenderDispatcher)(Object)this).render(e, x, y, z, e.yaw, tickDelta, matrices, vertexConsumers, light); ((EntityRenderDispatcher)(Object)this).render(e, x, y, z, e.yaw, tickDelta, matrices, vertexConsumers, light);
WorldRenderDelegate.INSTANCE.afterEntityRender(Pony.of((PlayerEntity)entity), matrices);
} }
} }