Fixed event not being cancelled

This commit is contained in:
Sollace 2019-02-17 02:03:31 +02:00
parent afdec48090
commit eb0341b632

View file

@ -33,7 +33,9 @@ class ClientHooks {
@SubscribeEvent @SubscribeEvent
public static void preEntityRender(RenderLivingEvent.Pre<?> event) { 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 @SubscribeEvent