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

View File

@@ -233,6 +233,8 @@ public class NetClient implements ApplicationListener{
return; return;
} }
if(message == null) return;
if(message.length() > maxTextLength){ if(message.length() > maxTextLength){
throw new ValidateException(player, "Player has sent a message above the text limit."); throw new ValidateException(player, "Player has sent a message above the text limit.");
} }

View File

@@ -25,4 +25,4 @@ org.gradle.caching=true
#used for slow jitpack builds; TODO see if this actually works #used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000 org.gradle.internal.http.connectionTimeout=100000
archash=55585b5c6e archash=ca4f4a41b0