I am creating a mod in which, in the mod settings, you can replace the usual radar graphics with graphics from the mod.
In data-updates.lua I have following code:
Code: Select all
if settings.startup["Ket-ingame-radar-graphics"].value == false then
data.raw.item["radar"].icon = "__KetsRadars__/graphics/icons/Ket-radar-mk1.png"
data.raw.radar["radar"].icon = "__KetsRadars__/graphics/icons/Ket-radar-mk1.png"
data.raw.radar["radar"].pictures.layers[1].filename = "__KetsRadars__/graphics/entity/Ket-radar-mk1.png"
data.raw.radar["radar"].pictures.layers[1].hr_version.filename = "__KetsRadars__/graphics/entity/Ket-hr-radar-mk1.png"
end
why did this happen and how can I fix it?