mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-12 13:19:23 +01:00
Fixed textual custom stat lore display
This commit is contained in:
parent
ac7fd6e17b
commit
d2c74df6d2
@ -38,7 +38,7 @@ public class StringStat extends ItemStat<StringData, StringData> {
|
||||
item.addItemTag(getAppliedNBT(data));
|
||||
|
||||
// Display in lore
|
||||
item.getLore().insert(getPath(), data.toString());
|
||||
item.getLore().insert(getPath(), getGeneralStatFormat().replace("{value}", data.toString()));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@ -94,7 +94,7 @@ public class StringStat extends ItemStat<StringData, StringData> {
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Nullable
|
||||
@Override
|
||||
public StringData getLoadedNBT(@NotNull ArrayList<ItemTag> storedTags) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user