geforkt von Mirrors/Paper
Standardise empty string as null / not set
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
9856b80c22
Commit
a04c494980
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren