Skip to content

Commit

Permalink
Merge pull request #4 from IXLShizua/patch-1
Browse files Browse the repository at this point in the history
Fix #2
  • Loading branch information
dima-dencep authored Mar 19, 2023
2 parents dce1266 + bf8d553 commit ee2581b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void onResourceReloadFailure(Throwable exception, Text resourceName, Call
}
}

@ModifyArg(method = "showResourceReloadFailureToast", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/toast/SystemToast;show(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V", remap = false), index = 3)
@ModifyArg(method = "showResourceReloadFailureToast", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/toast/SystemToast;show(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V"), index = 3)
public Text createDisplay(Text resourceName) {
return resourceName == null ? Text.translatable("gui.all") : resourceName;
}
Expand All @@ -51,4 +51,4 @@ public void reloadResources(CallbackInfoReturnable<CompletableFuture<Void>> cir)
cir.setReturnValue(CompletableFuture.runAsync(() -> this.showResourceReloadFailureToast(Text.translatable("rrls.alreadyReloading"))));
}
}
}
}

0 comments on commit ee2581b

Please sign in to comment.