leafreynolds / cosmere

Bringing The Cosmere to Minecraft!
MIT License
25 stars 19 forks source link

Refactor Metalmind Selection Code #99

Open leafreynolds opened 4 months ago

leafreynolds commented 4 months ago

The code that chooses what Metalmind to tap/store is one of the oldest pieces of code in the project, and likely needs a refactor to improve performance and be more intelligent about what order the metalminds will show in.

While we are in the area, we should:

R0b0r0b commented 4 months ago

Ooh, I never thought to say - I think I found a solution to the bug where a few points were left - all you need to do is tap or store at level one, depending on whether you're filling or storing.

I'm still open to a proper solution, though, especially as this workaround doesn't work for copper.

MoonlitJolteon commented 4 months ago

May be worth taking a look at Hexcasting and media works for reference, Hexcasting has to deal with finding media (amethyst and related) in the inventory, and media works implements a better algorithm for the same