From eb0341b6325d2592f608db097928f316775a2328 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 17 Feb 2019 02:03:31 +0200 Subject: [PATCH] Fixed event not being cancelled --- src/main/java/com/minelittlepony/unicopia/ClientHooks.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ClientHooks.java b/src/main/java/com/minelittlepony/unicopia/ClientHooks.java index 90c67464..c1e6dcab 100644 --- a/src/main/java/com/minelittlepony/unicopia/ClientHooks.java +++ b/src/main/java/com/minelittlepony/unicopia/ClientHooks.java @@ -33,7 +33,9 @@ class ClientHooks { @SubscribeEvent public static void preEntityRender(RenderLivingEvent.Pre event) { - UClient.instance().renderEntity(event.getEntity(), event.getPartialRenderTick()); + if (UClient.instance().renderEntity(event.getEntity(), event.getPartialRenderTick())) { + event.setCanceled(true); + } } @SubscribeEvent