From 953c1889b52479947ec1f9b0073211a02f733240 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 23 Oct 2020 17:18:49 -0400 Subject: [PATCH] Fixed #3080 --- core/src/mindustry/entities/comp/PlayerComp.java | 1 + core/src/mindustry/ui/dialogs/PlanetDialog.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/PlayerComp.java b/core/src/mindustry/entities/comp/PlayerComp.java index 736a1b68e5..512487b0e0 100644 --- a/core/src/mindustry/entities/comp/PlayerComp.java +++ b/core/src/mindustry/entities/comp/PlayerComp.java @@ -78,6 +78,7 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra team = state.rules.defaultTeam; admin = typing = false; textFadeTime = 0f; + x = y = 0f; if(!dead()){ unit.controller(unit.type.createController()); unit = Nulls.unit; diff --git a/core/src/mindustry/ui/dialogs/PlanetDialog.java b/core/src/mindustry/ui/dialogs/PlanetDialog.java index 66552ed936..9ba80ba2a7 100644 --- a/core/src/mindustry/ui/dialogs/PlanetDialog.java +++ b/core/src/mindustry/ui/dialogs/PlanetDialog.java @@ -242,7 +242,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{ addListener(new ElementGestureListener(){ @Override public void tap(InputEvent event, float x, float y, int count, KeyCode button){ - if(hovered != null && ((mode == look ? canSelect(hovered) && hovered != launchSector : hovered.unlocked()) || debugSelect)){ + if(hovered != null && (canSelect(hovered) || debugSelect)){ selected = hovered; }