From a0647c0feb1698a2856e1495e442e52ce9baaf4c Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev <66657148+MicrocontrollersDev@users.noreply.github.com> Date: Sun, 16 Jun 2024 14:45:14 -0700 Subject: [PATCH] make the unknown cause actually say unknown (#8) --- .../java/org/polyfrost/crashpatch/mixin/MixinCrashReport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/polyfrost/crashpatch/mixin/MixinCrashReport.java b/src/main/java/org/polyfrost/crashpatch/mixin/MixinCrashReport.java index 60b83db..9335159 100644 --- a/src/main/java/org/polyfrost/crashpatch/mixin/MixinCrashReport.java +++ b/src/main/java/org/polyfrost/crashpatch/mixin/MixinCrashReport.java @@ -33,7 +33,7 @@ public String getSuspectedCrashPatchMods() { @Inject(method = "populateEnvironment", at = @At("TAIL")) private void afterPopulateEnvironment(CallbackInfo ci) { ModContainer susMod = ModIdentifier.INSTANCE.identifyFromStacktrace(cause); - crashpatch$suspectedMod = (susMod == null ? "None" : susMod.getName()); + crashpatch$suspectedMod = (susMod == null ? "Unknown" : susMod.getName()); } @Inject(method = "populateEnvironment", at = @At("HEAD"))