mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 23:58:02 -05:00
Fix InvalidateRenderStateCallback only firing on resource reload (#1701)
Co-authored-by: grondag <>
This commit is contained in:
parent
0265fac409
commit
ffb6d41e97
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
archivesBaseName = "fabric-rendering-v1"
|
archivesBaseName = "fabric-rendering-v1"
|
||||||
version = getSubprojectVersion(project, "1.8.1")
|
version = getSubprojectVersion(project, "1.8.2")
|
||||||
|
|
||||||
moduleDependencies(project, [
|
moduleDependencies(project, [
|
||||||
'fabric-api-base'
|
'fabric-api-base'
|
||||||
|
|
|
@ -166,7 +166,7 @@ public abstract class MixinWorldRenderer {
|
||||||
WorldRenderEvents.END.invoker().onEnd(context);
|
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) {
|
private void onReload(CallbackInfo ci) {
|
||||||
InvalidateRenderStateCallback.EVENT.invoker().onInvalidate();
|
InvalidateRenderStateCallback.EVENT.invoker().onInvalidate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue