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.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
index 791dd5d..c430bf6 100644
--- a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
+++ b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
@@ -23,7 +23,10 @@ abstract class MixinRenderGlobal {
private boolean nd$isInsideUpdateRenderers;
- @Inject(method = "renderAllRenderLists", at = @At(value = "HEAD"), cancellable = true)
+ @Inject(method = "renderAllRenderLists",
+ at = @At(value = "HEAD"),
+ cancellable = true,
+ require = 1)
private void blockVanillaChunkRendering(int p1, double p2, CallbackInfo ci) {
if(!Neodymium.shouldRenderVanillaWorld()) {
ci.cancel();
@@ -40,12 +43,16 @@ abstract class MixinRenderGlobal {
}
}
- @Inject(method = "loadRenderers", at = @At(value = "HEAD"))
+ @Inject(method = "loadRenderers",
+ at = @At(value = "HEAD"),
+ require = 1)
public void preLoadRenderers(CallbackInfo ci) {
Neodymium.destroyRenderer();
}
- @Inject(method = "updateRenderers", at = @At(value = "RETURN"))
+ @Inject(method = "updateRenderers",
+ at = @At(value = "RETURN"),
+ require = 1)
public void speedUpChunkUpdatesForDebug(EntityLivingBase entity, boolean flag, CallbackInfoReturnable<Boolean> cir) {
if(Neodymium.isActive() && !nd$isInsideUpdateRenderers) {
nd$isInsideUpdateRenderers = true;