Standardise empty string as null / not set
Dieser Commit ist enthalten in:
Ursprung
b6a757dec8
Commit
22e5229238
@ -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) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren