Page 1 of 1

Typo in function in page types:mods (game doesn't load if you use it)

Posted: Fri Sep 25, 2026 6:04 pm
by snouz
Hi, I found a typo here

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()
end
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

Re: Typo in function in page types:mods (game doesn't load if you use it)

Posted: Fri Sep 25, 2026 6:49 pm
by boskid
Fixed for 2.1.21.