Fixed chat not working while paused

This commit is contained in:
Anuken
2021-02-12 12:55:31 -05:00
parent 541da5c0c9
commit abd07e1525
4 changed files with 106 additions and 6 deletions

View File

@@ -15,7 +15,6 @@ import arc.util.*;
import mindustry.*;
import mindustry.gen.*;
import mindustry.input.*;
import mindustry.type.*;
import mindustry.ui.*;
import static arc.Core.*;
@@ -206,7 +205,7 @@ public class ChatFragment extends Table{
}
}else{
//sending chat has a delay; workaround for issue #1943
Time.run(2f, () ->{
Time.runTask(2f, () ->{
scene.setKeyboardFocus(null);
shown = false;
scrollPos = 0;