Skip to content

[Suggestion/Bug] Mining AI on Erekir #73

@Fabizocker456

Description

@Fabizocker456

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions