Ignore null messages

This commit is contained in:
Anuken
2023-05-15 10:26:35 -04:00
parent 151743021b
commit 0d89654103
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -233,6 +233,8 @@ public class NetClient implements ApplicationListener{
return;
}
if(message == null) return;
if(message.length() > maxTextLength){
throw new ValidateException(player, "Player has sent a message above the text limit.");
}
+1 -1
View File
@@ -25,4 +25,4 @@ org.gradle.caching=true
#used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000
archash=55585b5c6e
archash=ca4f4a41b0