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;
}
if(message == null) return;
if(message.length() > maxTextLength){
throw new ValidateException(player, "Player has sent a message above the text limit.");
}