Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion/Bug] Mining AI on Erekir #73

Open
Fabizocker456 opened this issue Mar 25, 2024 · 0 comments
Open

[Suggestion/Bug] Mining AI on Erekir #73

Fabizocker456 opened this issue Mar 25, 2024 · 0 comments

Comments

@Fabizocker456
Copy link

Fabizocker456 commented Mar 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant