mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-01 15:51:03 +01:00
Fixed some ItemStats having Optional[*] as their value instead of just *
This commit is contained in:
parent
303dc15e13
commit
99e8e7e9a6
@ -63,7 +63,7 @@ public class StringStat extends ItemStat {
|
||||
@Override
|
||||
public void whenDisplayed(List<String> lore, Optional<RandomStatData> statData) {
|
||||
if (statData.isPresent()) {
|
||||
String value = MMOLib.plugin.parseColors(statData.toString());
|
||||
String value = MMOLib.plugin.parseColors(statData.get().toString());
|
||||
value = value.length() > 40 ? value.substring(0, 40) + "..." : value;
|
||||
lore.add(ChatColor.GRAY + "Current Value: " + ChatColor.GREEN + value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user