Fixed item editor issues

This commit is contained in:
Indyuce 2022-02-26 11:57:54 +01:00
parent 37b131f25c
commit a8a412b457
2 changed files with 1 additions and 3 deletions

View File

@ -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()); }

View File

@ -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;
}
}