From 636fe64d36f46ecb428a619a6417fc99336cd6f3 Mon Sep 17 00:00:00 2001 From: hannibal00212 Date: Fri, 8 Jul 2022 21:35:02 +0000 Subject: Prettified Code! --- src/main/java/at/lorenz/mod/mixins/MixinRenderManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main') diff --git a/src/main/java/at/lorenz/mod/mixins/MixinRenderManager.java b/src/main/java/at/lorenz/mod/mixins/MixinRenderManager.java index bdadc44df..918dce800 100644 --- a/src/main/java/at/lorenz/mod/mixins/MixinRenderManager.java +++ b/src/main/java/at/lorenz/mod/mixins/MixinRenderManager.java @@ -11,6 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(RenderManager.class) public class MixinRenderManager { + @Inject(method = "shouldRender", at = @At("HEAD"), cancellable = true) private void shouldRender(Entity entityIn, ICamera camera, double camX, double camY, double camZ, CallbackInfoReturnable cir) { RenderManagerHookKt.shouldRender(entityIn, camera, camX, camY, camZ, cir); -- cgit