mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Fixed item editor issues
This commit is contained in:
parent
37b131f25c
commit
a8a412b457
@ -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()); }
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user