Commit Graph

2 Commits

Author SHA1 Message Date
TheEpicBlock
dfd8b68a47 Support neoforge for 26.1 and above (#386) 2026-02-18 23:53:42 +01:00
TheEpicBlock
945f852259 Version fetching refactoring (#373)
* Put modloader version data in struct for legibility

* Create modloader map from list

This is a minor change, but it prevents any errors with the keys not being equal to the modloader's Name field

* Less anonymous functions in modloader version retrieval

With previous code, almost everything was lazy and returned a function. Changed this to only have anonymous function in the modloader definitions, and the rest of the functions all just execute their results immediately instead or returning a function. Makes for a bit more legible code.

* Simplify FetchMavenVersionFiltered

* Rewrite version retrieval

* Use Errorf in versionutil

* Remove httpclient parameter

turned out not to be needed

* Add testing for version retrieval

* Explain fetchMavenWithFilterMap
2026-02-18 23:01:04 +01:00