Scheme-Size icon indicating copy to clipboard operation
Scheme-Size copied to clipboard

[Suggestion/Bug] Mining AI on Erekir

Open Fabizocker456 opened this issue 11 months ago • 0 comments

On Erekir, the MinerAI breaks down, trying to mine ground items that are not mineable and ignoring those items that are. Since MinerAI.java is only 78 lines, it should be possible to add the NetMinerAI tweaks directly. If that were done, the call to indexer.findClosestOre in line 43 could be set to a custom BlockIndexer subclass that doesn't have a if(tile.block() == Blocks.air){ (line 419 here) check, or even better, ??mixtech?? || ??serpulo?? == (tile.block() == Blocks.air).

The same tweak should be applied in public BlockIndexer() (line 88), and the call to indexer.hasOre(item) in line 121 in HudFragment.java here would need to be updated, to reference the 'static CustomIndexer'. This ensures that e.g. graphite can even be selected.

I sadly cannot currently make pull requests, and have not tested the tweaks I suggested, but I believe it should work.

Fabizocker456 avatar Mar 25 '24 07:03 Fabizocker456