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

User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

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

Post 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
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4921
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post by boskid »

Fixed for 2.1.21.
Post Reply

Return to “Resolved Requests”