We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e8205 commit be620dfCopy full SHA for be620df
src/main/java/bwapi/Game.java
@@ -585,7 +585,7 @@ else if (!builder.getType().isFlyingBuilding() && type != Zerg_Nydus_Canal && !t
585
if (type.isResourceDepot()) {
586
for (final Unit m : getStaticMinerals()) {
587
final TilePosition tp = m.getInitialTilePosition();
588
- if ( (isVisible(tp) || isVisible(tp.x + 1, tp.y)) && !m.isVisible()) {
+ if ( (isVisible(tp) || isVisible(tp.x + 1, tp.y)) && !m.exists()) {
589
continue; // tile position is visible, but mineral is not => mineral does not exist
590
}
591
if (tp.x > lt.x - 5 &&
0 commit comments