From c0d8ce28031e226299b8a80daed1ac0908419a74 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 30 Oct 2021 09:18:06 -0400 Subject: [PATCH] Fixed #6268 --- core/src/mindustry/input/InputHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java index a6a5e3d8e2..3ce9851aaf 100644 --- a/core/src/mindustry/input/InputHandler.java +++ b/core/src/mindustry/input/InputHandler.java @@ -1113,7 +1113,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{ } Building build = world.buildWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y); - if(build instanceof ControlBlock cont && cont.canControl() && build.team == player.team()){ + if(build instanceof ControlBlock cont && cont.canControl() && build.team == player.team() && cont.unit() != player.unit()){ return cont.unit(); }