From a525a9127ce1b8ae76f486c23f652b57342c1c47 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 24 Sep 2020 19:31:40 +0200 Subject: [PATCH] Fixed disguises not being inverted by negative gravity --- .../unicopia/client/render/WorldRenderDelegate.java | 1 - .../unicopia/mixin/client/MixinEntityRenderDispatcher.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/WorldRenderDelegate.java b/src/main/java/com/minelittlepony/unicopia/client/render/WorldRenderDelegate.java index 8c298838..d5ea5c19 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/WorldRenderDelegate.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/WorldRenderDelegate.java @@ -33,7 +33,6 @@ public class WorldRenderDelegate { matrices.pop(); flipAngles(pony.getOwner()); - } } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinEntityRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinEntityRenderDispatcher.java index 2ca8904f..ea882a17 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinEntityRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinEntityRenderDispatcher.java @@ -45,7 +45,6 @@ abstract class MixinEntityRenderDispatcher { Entity e = effect.getDisguise(); if (e != null) { - WorldRenderDelegate.INSTANCE.afterEntityRender(Pony.of((PlayerEntity)entity), matrices); info.cancel(); 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); + WorldRenderDelegate.INSTANCE.afterEntityRender(Pony.of((PlayerEntity)entity), matrices); } }