We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432430e commit bb522cfCopy full SHA for bb522cf
src/main/java/bwapi/Game.java
@@ -1676,8 +1676,7 @@ public void setLocalSpeed(final int speed) {
1676
public boolean issueCommand(final Collection<Unit> units, final UnitCommand command) {
1677
return units.stream()
1678
.map(u -> u.issueCommand(command))
1679
- .collect(Collectors.toList()) // first force all commands to be issued
1680
- .contains(true);
+ .reduce(false, (a, b) -> a | b);
1681
}
1682
1683
/**
0 commit comments