From 180d6e7e1bf6f4b8a57d49b2fc176c245be12d5b Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 12 Jun 2024 23:16:45 -0700 Subject: [PATCH] Fixed templates not loading crashing MI when enabling --- .../main/java/net/Indyuce/mmoitems/manager/TemplateManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/manager/TemplateManager.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/manager/TemplateManager.java index 38ab7fc9..469ac657 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/manager/TemplateManager.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/manager/TemplateManager.java @@ -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()); }