Fix InvalidateRenderStateCallback only firing on resource reload (#1701)

Co-authored-by: grondag <>
This commit is contained in:
grondag 2021-09-09 10:46:58 -07:00 committed by GitHub
parent 0265fac409
commit ffb6d41e97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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'

View file

@ -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();
}