diff --git a/src/main/java/net/Indyuce/mmoitems/api/edition/StatEdition.java b/src/main/java/net/Indyuce/mmoitems/api/edition/StatEdition.java index 5969095f..9b700269 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/edition/StatEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/api/edition/StatEdition.java @@ -87,7 +87,7 @@ public class StatEdition implements Edition { // Success return true; - } catch (IllegalArgumentException exception) { + } catch (RuntimeException exception) { // Add message to the FFP if (!exception.getMessage().isEmpty()) { inv.getFFP().log(FriendlyFeedbackCategory.ERROR, exception.getMessage()); } diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java index 80362b7e..c52415d7 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java @@ -118,7 +118,6 @@ public class AbilityListEdition extends EditionInventory { if (!getEditedSection().contains("ability")) { getEditedSection().createSection("ability.ability1"); registerTemplateEdition(); - new AbilityEdition(player, template, "ability1").open(getPreviousPage()); return; } @@ -131,7 +130,6 @@ public class AbilityListEdition extends EditionInventory { if (!getEditedSection().getConfigurationSection("ability").contains("ability" + j)) { getEditedSection().createSection("ability.ability" + j); registerTemplateEdition(); - new AbilityEdition(player, template, "ability" + j).open(getPreviousPage()); break; } }