Fix Nullius overwriting localised names

Nullius modifies the names of some base items by writing to their
`localised_name` property. This modification is done before the
modified tables are copied and used by other mods (possibly depending on
load order).

As such, if mods use custom names from a `*.cfg` file, they will not be
respected unless the mod also writes to the `localised_name` property in
Lua code during the data stage.
This commit is contained in:
Adam Hellberg
2023-03-31 01:33:37 +02:00
parent 7b41bf9746
commit 8aca2151bb
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ combinator_entity.radius_visualisation_specification = {
}
combinator_entity.active_energy_usage = "10KW"
if mods["nullius"] then
combinator_entity.localised_name = { "entity-name.cybersyn-combinator" }
end
local COMBINATOR_SPRITE = "__cybersyn__/graphics/combinator/cybernetic-combinator.png"
local COMBINATOR_HR_SPRITE = "__cybersyn__/graphics/combinator/hr-cybernetic-combinator.png"