diff --git a/core/src/mindustry/ui/fragments/PlacementFragment.java b/core/src/mindustry/ui/fragments/PlacementFragment.java index e1d659199d..87b7d61cf0 100644 --- a/core/src/mindustry/ui/fragments/PlacementFragment.java +++ b/core/src/mindustry/ui/fragments/PlacementFragment.java @@ -462,9 +462,15 @@ public class PlacementFragment{ var listener = new ClickListener(); //left click -> select - b.clicked(KeyCode.mouseLeft, () -> control.input.selectedUnits.removeAll(unit -> unit.type != type)); + b.clicked(KeyCode.mouseLeft, () -> { + control.input.selectedUnits.removeAll(unit -> unit.type != type); + Events.fire(Trigger.unitCommandChange); + }); //right click -> remove - b.clicked(KeyCode.mouseRight, () -> control.input.selectedUnits.removeAll(unit -> unit.type == type)); + b.clicked(KeyCode.mouseRight, () -> { + control.input.selectedUnits.removeAll(unit -> unit.type == type); + Events.fire(Trigger.unitCommandChange); + }); b.addListener(listener); b.addListener(new HandCursorListener());