Strengthen exception when parsing models

This commit is contained in:
embeddedt 2023-04-08 17:28:17 -04:00
parent 4f35a6cda3
commit e724c4dfb1
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -199,8 +199,8 @@ public abstract class ModelBakeryMixin {
model.name = pair.getFirst().toString();
basicModels.put(pair.getFirst(), model);
}
} catch(Exception e) {
ModernFix.LOGGER.warn("Unable to load {}: {}", pair.getFirst(), e);
} catch(Throwable e) {
ModernFix.LOGGER.warn("Unable to parse {}: {}", pair.getFirst(), e);
}
}
modelBytes.clear();