Don't show mining stances for wall ores when irrelevant
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user