Fixed tab cycling not working

This commit is contained in:
Anuken 2020-08-17 20:02:56 -04:00
parent 7ecf5aa26d
commit 7ec6e64c18
4 changed files with 5 additions and 5 deletions

View File

@ -176,7 +176,7 @@ public class DesktopInput extends InputHandler{
public void update(){
super.update();
if(net.active() && Core.input.keyTap(Binding.player_list)){
if(net.active() && Core.input.keyTap(Binding.player_list) && (scene.getKeyboardFocus() == null || scene.getKeyboardFocus().isDescendantOf(ui.listfrag.content))){
ui.listfrag.toggle();
}

View File

@ -250,7 +250,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
@Remote(targets = Loc.both, called = Loc.both, forward = true)
public static void unitClear(Player player){
//no free core teleports?
if(!player.dead() && player.unit().spawnedByCore) return;
if(player == null || !player.dead() && player.unit().spawnedByCore) return;
Fx.spawn.at(player);
player.clearUnit();
@ -259,7 +259,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
@Remote(targets = Loc.both, called = Loc.server, forward = true)
public static void unitCommand(Player player){
if(player.dead() || !(player.unit() instanceof Commanderc)) return;
if(player == null || player.dead() || !(player.unit() instanceof Commanderc)) return;
Commanderc commander = (Commanderc)player.unit();

View File

@ -16,8 +16,8 @@ import mindustry.ui.*;
import static mindustry.Vars.*;
public class PlayerListFragment extends Fragment{
public Table content = new Table().marginRight(13f).marginLeft(13f);
private boolean visible = false;
private Table content = new Table().marginRight(13f).marginLeft(13f);
private Interval timer = new Interval();
private TextField sField;
private boolean found = false;

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=12a666e6b9871bbe865a3e45610678d2ce27d100
archash=ffe8dc8a19bfea1ac934b601be452c272b850945