fix: i thought i can trust IDEA (*echo spaces not working)

This commit is contained in:
ChomeNS
2025-05-11 07:52:42 +07:00
parent 092f83ade4
commit 2b1a4067ab
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
3186
3187

View File

@@ -3,7 +3,7 @@ package me.chayapak1.chomens_bot.util;
public class IllegalCharactersUtilities {
public static boolean isInvalidChatCharacter (final char character) {
// RIPPED straight from minecraft code
return character == 167 || character <= ' ' || character == 127;
return character == 167 || character < ' ' || character == 127;
}
public static boolean isValidChatString (final String string) {