This commit is contained in:
Anuken
2025-04-25 20:38:26 -04:00
parent 847a201597
commit b064fe1440

View File

@@ -617,7 +617,7 @@ public class PlacementFragment{
}
int size = control.input.selectedUnits.size;
if(curCount[0] != size || (currentCommand[0] != shareCommand && currentCommand[0] != null && (currentCommand[0].refreshOnSelect || shareCommand.refreshOnSelect))){
if(curCount[0] != size || (currentCommand[0] != shareCommand && shareCommand != null && currentCommand[0] != null && (currentCommand[0].refreshOnSelect || shareCommand.refreshOnSelect))){
curCount[0] = size;
rebuildCommand.run();
}