mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed event not being cancelled
This commit is contained in:
parent
afdec48090
commit
eb0341b632
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue