Don't show mining stances for wall ores when irrelevant

This commit is contained in:
Anuken 2025-05-17 10:33:45 -04:00
parent 5c96761ff6
commit 0a046f8fa5

View file

@ -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);