Typo in function in page types:mods (game doesn't load if you use it)
Posted: Fri Sep 25, 2026 6:04 pm
Hi, I found a typo here
https://lua-api.factorio.com/2.1.20/types/Mods.html
it's compare_versionS, plural, else it throws this error: Failed to load mods: LuaHelpers doesn't contain key compare_version.
https://lua-api.factorio.com/2.1.20/cla ... e_versions
https://lua-api.factorio.com/2.1.20/types/Mods.html
Code: Select all
if helpers.compare_version(mods["base"], "2.0.56") >= 0 then
use_new_features()
endhttps://lua-api.factorio.com/2.1.20/cla ... e_versions