mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 20:30:28 +01:00
Standardise empty string as null / not set
This commit is contained in:
parent
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user