AlexNijjar / Extractinator

Convert blocks into resources.
MIT License
6 stars 9 forks source link

[Feature Request]: Recipes cannot work properly, and works randomly with datapack #31

Closed aria1th closed 1 year ago

aria1th commented 1 year ago

Is your feature request related to a problem?

Current code uses findFirst, but if multiple recipe is registered, its order is random for every server reboot.

Also you registered everything with 'extractinator:stones'.

Assume if you want additional recipe for basalt extractinating.

But you might not be able to use additional recipe, because server will only find first recipe matching.

Solution(s)

Instead of using findFirst, use anything else - and seriously it is recommended to have recipe cache for each block Entity, its searching for recipe every actions.

Describe alternatives you've considered

I'll do pull request when I have time.

Mod Version

2.0.1

Mod Loader Version

1.19.2-fabric

Mod Loader

Fabric

Additional context

No response