Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren