From ffb6d41e979ce0bef15245d35ff68b8e1e2e6ca8 Mon Sep 17 00:00:00 2001 From: grondag Date: Thu, 9 Sep 2021 10:46:58 -0700 Subject: [PATCH] Fix InvalidateRenderStateCallback only firing on resource reload (#1701) Co-authored-by: grondag <> --- fabric-rendering-v1/build.gradle | 2 +- .../fabric/mixin/client/rendering/MixinWorldRenderer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fabric-rendering-v1/build.gradle b/fabric-rendering-v1/build.gradle index b8904822a..224969a30 100644 --- a/fabric-rendering-v1/build.gradle +++ b/fabric-rendering-v1/build.gradle @@ -1,5 +1,5 @@ archivesBaseName = "fabric-rendering-v1" -version = getSubprojectVersion(project, "1.8.1") +version = getSubprojectVersion(project, "1.8.2") moduleDependencies(project, [ 'fabric-api-base' diff --git a/fabric-rendering-v1/src/main/java/net/fabricmc/fabric/mixin/client/rendering/MixinWorldRenderer.java b/fabric-rendering-v1/src/main/java/net/fabricmc/fabric/mixin/client/rendering/MixinWorldRenderer.java index 91c58f074..08fda2ef1 100644 --- a/fabric-rendering-v1/src/main/java/net/fabricmc/fabric/mixin/client/rendering/MixinWorldRenderer.java +++ b/fabric-rendering-v1/src/main/java/net/fabricmc/fabric/mixin/client/rendering/MixinWorldRenderer.java @@ -166,7 +166,7 @@ public abstract class MixinWorldRenderer { WorldRenderEvents.END.invoker().onEnd(context); } - @Inject(method = "reload", at = @At("HEAD")) + @Inject(method = "Lnet/minecraft/client/render/WorldRenderer;reload()V", at = @At("HEAD")) private void onReload(CallbackInfo ci) { InvalidateRenderStateCallback.EVENT.invoker().onInvalidate(); }