aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java')
-rw-r--r--src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
index 3574868..a059e8e 100644
--- a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
+++ b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
@@ -40,8 +40,7 @@ abstract class MixinRenderGlobal {
@Inject(method = "loadRenderers", at = @At(value = "HEAD"))
public void preLoadRenderers(CallbackInfo ci) {
if(Neodymium.isActive()) {
- Neodymium.renderer.destroy();
- Neodymium.renderer = null;
+ Neodymium.destroyRenderer();
}
}