We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dfb9fa commit 89210b5Copy full SHA for 89210b5
src/main/java/bwapi/Game.java
@@ -262,9 +262,11 @@ void unitHide(final int id) {
262
}
263
264
void onFrame(final int frame) {
265
- allUnits = Collections.unmodifiableList(visibleUnits.stream()
266
- .map(i -> units[i])
267
- .collect(Collectors.toList()));
+ if (frame > 0) {
+ allUnits = Collections.unmodifiableList(visibleUnits.stream()
+ .map(i -> units[i])
268
+ .collect(Collectors.toList()));
269
+ }
270
getAllUnits().forEach(u -> u.updatePosition(frame));
271
272
0 commit comments