Fix NPE with roundAlphaBuffer

This commit is contained in:
Moulberry committed 2025-03-14 01:55:26 +08:00
1 parent 02974b2ec6
commit d192fbd88d
1 file changed
+3 -1
@@ -85,7 +85,9 @@ public abstract class MixinLevelRenderer {
@Inject(method = "close", at = @At("HEAD"))
public void close(CallbackInfo ci) {
this.roundAlphaBuffer.destroyBuffers();
if (this.roundAlphaBuffer != null) {
this.roundAlphaBuffer.destroyBuffers();
}
}
@Inject(method = "renderSectionLayer", at = @At("HEAD"), cancellable = true, require = 0)