Skip to content

Commit

Permalink
Fix-up mixin targets for core shader checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jellysquid3 committed Nov 13, 2023
1 parent 8e977c7 commit d7d461f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ private void postRender(boolean tick, CallbackInfo ci) {
* Check for problematic core shader resource packs after the initial game launch.
*/
@Inject(method = "onInitFinished", at = @At("TAIL"))
private void postInit(RealmsClient realms, ResourceReload reload, RunArgs.QuickPlay quickPlay, CallbackInfo ci) {
InGameChecks.checkIfCoreShaderLoaded(resourceManager);
private void postInit(CallbackInfoReturnable<Runnable> cir) {
InGameChecks.checkIfCoreShaderLoaded(this.resourceManager);
}

/**
* Check for problematic core shader resource packs after every resource reload.
*/
@Inject(method = "reloadResources()Ljava/util/concurrent/CompletableFuture;", at = @At("TAIL"))
private void postResourceReload(CallbackInfoReturnable<CompletableFuture<Void>> cir) {
InGameChecks.checkIfCoreShaderLoaded(resourceManager);
InGameChecks.checkIfCoreShaderLoaded(this.resourceManager);
}

}

0 comments on commit d7d461f

Please sign in to comment.