Skip to content

Commit

Permalink
attempt to fix occlusionrenderer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Dec 8, 2024
1 parent 841098b commit 157f13f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ public String getDebugInfoRenders() {
at = @At("RETURN"),
require = 1)
private void initBetterLists(Minecraft p_i1249_1_, CallbackInfo ci) {
OcclusionHelpers.renderer = new OcclusionRenderer((RenderGlobal) (Object) this);
OcclusionHelpers.renderer.initBetterLists();
if (OcclusionHelpers.renderer != null) {
OcclusionHelpers.renderer = new OcclusionRenderer((RenderGlobal) (Object) this);
OcclusionHelpers.renderer.initBetterLists();
}
}

@Redirect(method = "loadRenderers",
Expand Down

0 comments on commit 157f13f

Please sign in to comment.