Turn MiningRange into a UnitType variable. (#5112)

* Turn MiningRange into a UnitType variable.

Long range mining go brrrrr

* Anuke Approved
This commit is contained in:
MEEP of Faith
2021-04-16 17:57:40 -07:00
committed by GitHub
parent d9b6ada0b3
commit fbddc0abc9
4 changed files with 5 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ abstract class MinerComp implements Itemsc, Posc, Teamc, Rotc, Drawc{
}
public boolean validMine(Tile tile, boolean checkDst){
return !(tile == null || tile.block() != Blocks.air || (!within(tile.worldx(), tile.worldy(), miningRange) && checkDst)
return !(tile == null || tile.block() != Blocks.air || (!within(tile.worldx(), tile.worldy(), type.miningRange) && checkDst)
|| tile.drop() == null || !canMine(tile.drop()));
}