mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 10:25:42 +07:00
Fixed #2290
This commit is contained in:
parent
bb3b4d4415
commit
d658367be7
@ -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")){
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=1f28caadca013e38e2922f6835961500907bcafc
|
||||
archash=a57382410169d73ada6bc54bdb02fa709aa90558
|
||||
|
Loading…
Reference in New Issue
Block a user