Chat prefix empty message fix / Call.sound volume limit increase

This commit is contained in:
Anuken
2021-08-24 10:19:46 -04:00
parent 8949fd279e
commit 8e90527609
3 changed files with 5 additions and 4 deletions

View File

@@ -176,7 +176,8 @@ public class ChatFragment extends Table{
String message = chatfield.getText().trim();
clearChatInput();
if(message.isEmpty()) return;
//avoid sending prefix-empty messages
if(message.isEmpty() || (message.startsWith(mode.prefix) && message.substring(mode.prefix.length()).isEmpty())) return;
history.insert(1, message);