Fixed #2290
This commit is contained in:
@@ -171,7 +171,7 @@ public class ChatFragment extends Table{
|
||||
String message = chatfield.getText();
|
||||
clearChatInput();
|
||||
|
||||
if(message.replaceAll(" ", "").isEmpty()) return;
|
||||
if(message.replace(" ", "").isEmpty()) return;
|
||||
|
||||
history.insert(1, message);
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ public class PlacementFragment extends Fragment{
|
||||
blockSelectEnd = true;
|
||||
}
|
||||
Seq<Block> blocks = getByCategory(currentCategory);
|
||||
if(!unlocked(blocks.get(i))) return true;
|
||||
if(i >= blocks.size || !unlocked(blocks.get(i))) return true;
|
||||
input.block = (i < blocks.size) ? blocks.get(i) : null;
|
||||
selectedBlocks.put(currentCategory, input.block);
|
||||
blockSelectSeqMillis = Time.millis();
|
||||
|
||||
@@ -159,7 +159,7 @@ public class ScriptConsoleFragment extends Table{
|
||||
String message = chatfield.getText();
|
||||
clearChatInput();
|
||||
|
||||
if(message.replaceAll(" ", "").isEmpty()) return;
|
||||
if(message.replace(" ", "").isEmpty()) return;
|
||||
|
||||
//special case for 'clear' command
|
||||
if(message.equals("clear")){
|
||||
|
||||
Reference in New Issue
Block a user