when and why was this hardcoded (#6289)

This commit is contained in:
Matthew Peng
2021-11-02 17:22:07 -07:00
committed by GitHub
parent 921c113375
commit a438be7fcd
3 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ public class MinerAI extends AIController{
if(mining){
if(timer.get(timerTarget2, 60 * 4) || targetItem == null){
targetItem = unit.team.data().mineItems.min(i -> indexer.hasOre(i) && unit.canMine(i), i -> core.items.get(i));
targetItem = unit.type.mineItems.min(i -> indexer.hasOre(i) && unit.canMine(i), i -> core.items.get(i));
}
//core full of the target item, do nothing
@@ -75,4 +75,4 @@ public class MinerAI extends AIController{
circle(core, unit.type.range / 1.8f);
}
}
}
}