Refine caught exceptions
This commit is contained in:
parent
c678ebbb91
commit
f750fa4188
|
|
@ -43,7 +43,7 @@ public class ClassInfoManager {
|
||||||
Class<?> fabricLogger = null;
|
Class<?> fabricLogger = null;
|
||||||
try {
|
try {
|
||||||
fabricLogger = Class.forName("net.fabricmc.loader.impl.knot.MixinLogger");
|
fabricLogger = Class.forName("net.fabricmc.loader.impl.knot.MixinLogger");
|
||||||
} catch(Throwable e) {
|
} catch(ClassNotFoundException e) {
|
||||||
// Probably not Fabric
|
// Probably not Fabric
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ public class ModelBakeEventHelper {
|
||||||
boolean needsReplacement;
|
boolean needsReplacement;
|
||||||
try {
|
try {
|
||||||
needsReplacement = function.apply(location, null) != null;
|
needsReplacement = function.apply(location, null) != null;
|
||||||
} catch(Throwable e) {
|
} catch(Exception e) {
|
||||||
needsReplacement = true;
|
needsReplacement = true;
|
||||||
}
|
}
|
||||||
if(needsReplacement) {
|
if(needsReplacement) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user