diff --git a/core/src/mindustry/input/DesktopInput.java b/core/src/mindustry/input/DesktopInput.java index 0c83fb8127..503fe35184 100644 --- a/core/src/mindustry/input/DesktopInput.java +++ b/core/src/mindustry/input/DesktopInput.java @@ -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(); } diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java index e958cfaf65..3d15d3e683 100644 --- a/core/src/mindustry/input/InputHandler.java +++ b/core/src/mindustry/input/InputHandler.java @@ -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(); diff --git a/core/src/mindustry/ui/fragments/PlayerListFragment.java b/core/src/mindustry/ui/fragments/PlayerListFragment.java index 826ee869a0..87ac5d068d 100644 --- a/core/src/mindustry/ui/fragments/PlayerListFragment.java +++ b/core/src/mindustry/ui/fragments/PlayerListFragment.java @@ -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; diff --git a/gradle.properties b/gradle.properties index 19c48b765f..228564698d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=12a666e6b9871bbe865a3e45610678d2ce27d100 +archash=ffe8dc8a19bfea1ac934b601be452c272b850945