mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 05:51:47 -08:00
Fixed chat not clearing
This commit is contained in:
parent
64ccdab90c
commit
4614aacc02
1 changed files with 6 additions and 4 deletions
|
|
@ -56,10 +56,8 @@ public class ChatFragment extends Table{
|
|||
setFillParent(true);
|
||||
font = Core.skin.getFont("default-font");
|
||||
|
||||
visible(() -> !state.is(State.menu) && Net.active());
|
||||
|
||||
update(() -> {
|
||||
if(!Net.active()){
|
||||
visible(() -> {
|
||||
if(!Net.active() && messages.size > 0){
|
||||
clearMessages();
|
||||
|
||||
if(chatOpen){
|
||||
|
|
@ -67,6 +65,10 @@ public class ChatFragment extends Table{
|
|||
}
|
||||
}
|
||||
|
||||
return !state.is(State.menu) && Net.active();
|
||||
});
|
||||
|
||||
update(() -> {
|
||||
|
||||
if(Net.active() && Inputs.keyTap("chat")){
|
||||
toggle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue