Refine caught exceptions
This commit is contained in:
parent
c678ebbb91
commit
f750fa4188
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user