mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-22 18:25:59 +01:00
BUg fix
This commit is contained in:
parent
8eb2edbcc0
commit
2e801e060e
@ -110,7 +110,7 @@ public class Hopper {
|
|||||||
itemmetaXP.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewithxp"));
|
itemmetaXP.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewithxp"));
|
||||||
ArrayList<String> loreXP = new ArrayList<>();
|
ArrayList<String> loreXP = new ArrayList<>();
|
||||||
if (nextLevel != null)
|
if (nextLevel != null)
|
||||||
loreXP.add(instance.getLocale().getMessage("interface.hopper.upgradewithxplore", level.getCostExperience()));
|
loreXP.add(instance.getLocale().getMessage("interface.hopper.upgradewithxplore", nextLevel.getCostExperience()));
|
||||||
else
|
else
|
||||||
loreXP.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
|
loreXP.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
|
||||||
itemmetaXP.setLore(loreXP);
|
itemmetaXP.setLore(loreXP);
|
||||||
@ -121,7 +121,7 @@ public class Hopper {
|
|||||||
itemmetaECO.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewitheconomy"));
|
itemmetaECO.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewitheconomy"));
|
||||||
ArrayList<String> loreECO = new ArrayList<>();
|
ArrayList<String> loreECO = new ArrayList<>();
|
||||||
if (nextLevel != null)
|
if (nextLevel != null)
|
||||||
loreECO.add(instance.getLocale().getMessage("interface.hopper.upgradewitheconomylore", Arconix.pl().getApi().format().formatEconomy(level.getCostEconomy())));
|
loreECO.add(instance.getLocale().getMessage("interface.hopper.upgradewitheconomylore", Arconix.pl().getApi().format().formatEconomy(nextLevel.getCostEconomy())));
|
||||||
else
|
else
|
||||||
loreECO.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
|
loreECO.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
|
||||||
itemmetaECO.setLore(loreECO);
|
itemmetaECO.setLore(loreECO);
|
||||||
|
Loading…
Reference in New Issue
Block a user