mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-03 06:28:48 +00:00
Fix NPE with roundAlphaBuffer
This commit is contained in:
1 parent
02974b2ec6
commit
d192fbd88d
1 file changed
+2
@@ -85,8 +85,10 @@ public abstract class MixinLevelRenderer {
|
|||||||
|
|
||||||
@Inject(method = "close", at = @At("HEAD"))
|
@Inject(method = "close", at = @At("HEAD"))
|
||||||
public void close(CallbackInfo ci) {
|
public void close(CallbackInfo ci) {
|
||||||
|
if (this.roundAlphaBuffer != null) {
|
||||||
this.roundAlphaBuffer.destroyBuffers();
|
this.roundAlphaBuffer.destroyBuffers();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Inject(method = "renderSectionLayer", at = @At("HEAD"), cancellable = true, require = 0)
|
@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) {
|
public void renderSectionLayer(RenderType renderType, double d, double e, double f, Matrix4f matrix4f, Matrix4f matrix4f2, CallbackInfo ci) {
|
||||||
|
|||||||
Reference in new issue
Block a user