mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-11 08:08:15 -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"
|
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_SPRITE = "__cybersyn__/graphics/combinator/cybernetic-combinator.png"
|
||||||
local COMBINATOR_HR_SPRITE = "__cybersyn__/graphics/combinator/hr-cybernetic-combinator.png"
|
local COMBINATOR_HR_SPRITE = "__cybersyn__/graphics/combinator/hr-cybernetic-combinator.png"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ combinator_item.subgroup = data.raw["item"]["train-stop"].subgroup
|
|||||||
combinator_item.order = data.raw["item"]["train-stop"].order.."-b"
|
combinator_item.order = data.raw["item"]["train-stop"].order.."-b"
|
||||||
combinator_item.place_result = COMBINATOR_NAME
|
combinator_item.place_result = COMBINATOR_NAME
|
||||||
if mods["nullius"] then
|
if mods["nullius"] then
|
||||||
|
combinator_item.localised_name = { "item-name.cybersyn-combinator" }
|
||||||
-- Enable item in Nullius and place next to the regular train stop
|
-- Enable item in Nullius and place next to the regular train stop
|
||||||
combinator_item.order = "nullius-eca"
|
combinator_item.order = "nullius-eca"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user