mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-19 08:47:29 +07:00
Fixed #6268
This commit is contained in:
parent
f1d1f935fb
commit
c0d8ce2803
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user