Fixed templates not loading crashing MI when enabling

This commit is contained in:
Jules 2024-06-12 23:16:45 -07:00
parent 263a9335a1
commit 180d6e7e1b

View File

@ -324,7 +324,7 @@ public class TemplateManager implements Reloadable {
templates.forEach(template -> {
try {
template.getPostLoadAction().performAction();
} catch (IllegalArgumentException exception) {
} catch (Exception exception) {
ffp.activatePrefix(true, "Item Templates \u00a78($r" + template.getType().getId() + "\u00a78)");
ffp.log(FriendlyFeedbackCategory.INFORMATION, "Could not post-load item template '" + template.getId() + "': " + exception.getMessage());
}