Fixed disguises

This commit is contained in:
Sollace 2020-09-23 23:38:19 +02:00
parent 5aa9d27861
commit a4c0d936f4

View file

@ -45,7 +45,9 @@ 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)) {
Vec3d cam = MinecraftClient.getInstance().gameRenderer.getCamera().getPos(); Vec3d cam = MinecraftClient.getInstance().gameRenderer.getCamera().getPos();