mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
Don't show mining stances for wall ores when irrelevant
This commit is contained in:
parent
5c96761ff6
commit
0a046f8fa5
1 changed files with 1 additions and 1 deletions
|
|
@ -601,7 +601,7 @@ public class UnitType extends UnlockableContent implements Senseable{
|
|||
if(unit.controller() instanceof CommandAI ai && ai.currentCommand() == UnitCommand.mineCommand){
|
||||
out.add(UnitStance.mineAuto);
|
||||
for(Item item : indexer.getAllPresentOres()){
|
||||
if(unit.canMine(item)){
|
||||
if(unit.canMine(item) && ((mineFloor && indexer.hasOre(item)) || (mineWalls && indexer.hasWallOre(item)))){
|
||||
var itemStance = ItemUnitStance.getByItem(item);
|
||||
if(itemStance != null){
|
||||
out.add(itemStance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue