Refine caught exceptions

This commit is contained in:
Fury_Phoenix 2024-01-09 07:37:54 -08:00
parent c678ebbb91
commit f750fa4188
No known key found for this signature in database
GPG Key ID: 0595F98084987DB8
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ public class ClassInfoManager {
Class<?> fabricLogger = null;
try {
fabricLogger = Class.forName("net.fabricmc.loader.impl.knot.MixinLogger");
} catch(Throwable e) {
} catch(ClassNotFoundException e) {
// Probably not Fabric
return;
}

View File

@ -164,7 +164,7 @@ public class ModelBakeEventHelper {
boolean needsReplacement;
try {
needsReplacement = function.apply(location, null) != null;
} catch(Throwable e) {
} catch(Exception e) {
needsReplacement = true;
}
if(needsReplacement) {