mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-10 10:08:18 -06:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user