Standardise empty string as null / not set

This commit is contained in:
md_5 2018-07-16 16:20:26 +10:00
parent b6a757dec8
commit 22e5229238

View File

@ -139,7 +139,7 @@ public final class CraftChatMessage {
}
public static IChatBaseComponent fromStringOrNull(String message) {
return (message == null) ? null : fromString(message)[0];
return (message == null || message.isEmpty()) ? null : fromString(message)[0];
}
public static IChatBaseComponent[] fromString(String message) {