I am creating a mod that replaces uranium graphics with blue variants, and so far I have successfully used realistic ores as a template for replacing most of the item icons, but for some reason I cannot seem to change the icons used when items are placed on the ground. You can see in the image below that even though the uranium fuel cell in my cursor is blue, the one on the floor is still green. The same applies for the ammunition, uranium-235, and nuclear fuel. All of these are blue in menus but appear green on the floor.

My thought process was that these items have light masks that I could probably be specifying too, but that goes out the window when you consider uranium-235 doesn't have a light mask (that I have found). As an example , my code for replacing the fuel cell is as follows:
Code: Select all
local uraniumfuelcell = data.raw.item["uranium-fuel-cell"]
if uraniumfuelcell then
uraniumfuelcell.icon = string.gsub(uraniumfuelcell.icon, "^__base__", modRoot)
uraniumfuelcell.icon_size = 64
end
I've made sure to disable all other mods to ensure there were no collisions, so I'm wondering what I could be doing wrong. Any help would be appreciated!
I also have plans to change the glow of the centrifuge to blue, and I peeked at the realistic reactor glow mod to see how they handled it. Unfortunately it seems nuclear reactors and centrifuges don't share the same data structure, so if anyone could also point me in the right direction there I'd be most grateful!