SPIGOT-4726: Lore not being applied to new items

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-04-24 09:54:58 +10:00
parent 1a66e298de
commit 545d8a9948
2 changed files with 24 additions and 14 deletions

View File

@@ -140,6 +140,10 @@ public final class CraftChatMessage {
return (message == null || message.isEmpty()) ? null : new ChatComponentText(message);
}
public static IChatBaseComponent wrapOrEmpty(String message) {
return (message == null) ? new ChatComponentText("") : new ChatComponentText(message);
}
public static IChatBaseComponent fromStringOrNull(String message) {
return fromStringOrNull(message, false);
}