mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-31 06:07:34 +01:00
Small Fixes:
- Fixed 'attack-effects.yml' autogenerating itself - Fixed UpgradingEdition back button
This commit is contained in:
parent
022c09d756
commit
f91beaebfe
@ -153,12 +153,12 @@ public class ConfigManager {
|
||||
ConfigFile attackEffects = new ConfigFile("/language", "attack-effects");
|
||||
for (StaffSpirit spirit : StaffSpirit.values()) {
|
||||
String path = spirit.name().toLowerCase().replace("_", "-");
|
||||
if (!attackEffects.getConfig().contains(path))
|
||||
if (!attackEffects.getConfig().contains("staff-spirit." + path))
|
||||
attackEffects.getConfig().set("staff-spirit." + path, "&7" + AltChar.listSquare + " " + spirit.getDefaultName());
|
||||
}
|
||||
for (LuteAttackEffect effect : LuteAttackEffect.values()) {
|
||||
String path = effect.name().toLowerCase().replace("_", "-");
|
||||
if (!attackEffects.getConfig().contains(path))
|
||||
if (!attackEffects.getConfig().contains("lute-attack." + path))
|
||||
attackEffects.getConfig().set("lute-attack." + path, "&7" + AltChar.listSquare + " " + effect.getDefaultName() + " Attacks");
|
||||
}
|
||||
attackEffects.save();
|
||||
|
@ -47,7 +47,7 @@ public class Upgrade_Stat extends ItemStat {
|
||||
@Override
|
||||
public boolean whenClicked(EditionInventory inv, InventoryClickEvent event) {
|
||||
if (event.getAction() == InventoryAction.PICKUP_ALL)
|
||||
new UpgradingEdition(inv.getPlayer(), inv.getItemType(), inv.getItemId()).open();
|
||||
new UpgradingEdition(inv.getPlayer(), inv.getItemType(), inv.getItemId()).open(inv.getPreviousPage());
|
||||
|
||||
if (event.getAction() == InventoryAction.PICKUP_HALF) {
|
||||
ConfigFile config = inv.getItemType().getConfigFile();
|
||||
|
Loading…
Reference in New Issue
Block a user