mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Closes Anuken/Mindustry-Suggestions/issues/4607
This commit is contained in:
parent
275c3ec163
commit
bdbb2de61a
2 changed files with 6 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
|
||||
@Remote(called = Loc.server, targets = Loc.both, forward = true)
|
||||
public static void commandBuilding(Player player, int[] buildings, Vec2 target){
|
||||
if(player == null || target == null) return;
|
||||
if(player == null || target == null) return;
|
||||
|
||||
if(net.server() && !netServer.admins.allowAction(player, ActionType.commandBuilding, event -> {
|
||||
event.buildingPositions = buildings;
|
||||
|
|
@ -299,6 +299,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
if(build == null || build.team() != player.team() || !build.block.commandable) continue;
|
||||
|
||||
build.onCommand(target);
|
||||
build.lastAccessed = player.name;
|
||||
|
||||
if(!state.isPaused() && player == Vars.player){
|
||||
Fx.moveCommand.at(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue