This commit is contained in:
Anuken 2021-10-30 09:18:06 -04:00
parent f1d1f935fb
commit c0d8ce2803

View File

@ -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();
}