From d2022ca2e32dff3f369cd7aa393394068d084ac8 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sun, 3 Apr 2022 01:37:03 +0200 Subject: [PATCH] Fixed exception handling --- .../net/Indyuce/mmocore/api/player/profess/PlayerClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java b/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java index 2c593c2e..346a2b9a 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java @@ -136,7 +136,7 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject { try { RegisteredSkill registered = MMOCore.plugin.skillManager.getSkillOrThrow(UtilityMethods.enumName(key)); skills.put(registered.getHandler().getId(), new ClassSkill(registered, config.getConfigurationSection("skills." + key))); - } catch (IllegalArgumentException exception) { + } catch (RuntimeException exception) { MMOCore.plugin.getLogger().log(Level.WARNING, "Could not load skill info '" + key + "' from class '" + id + "': " + exception.getMessage()); }