Fix NPE with roundAlphaBuffer

This commit is contained in:
Moulberry committed 2025-03-14 01:52:33 +08:00
1 parent bc66ebfe5f
commit 19678b2f83
1 file changed
+2
@@ -88,8 +88,10 @@ public abstract class MixinLevelRenderer {
@Inject(method = "close", at = @At("HEAD"))
public void close(CallbackInfo ci) {
if (this.roundAlphaBuffer != null) {
this.roundAlphaBuffer.destroyBuffers();
}
}
@Inject(method = "renderSectionLayer", at = @At("HEAD"), cancellable = true, require = 0)
public void renderSectionLayer(RenderType renderType, double d, double e, double f, Matrix4f matrix4f, Matrix4f matrix4f2, CallbackInfo ci) {