silo tank map color fix
This commit is contained in:
parent
d7b3028f52
commit
75ba48ad22
1 changed files with 8 additions and 2 deletions
|
@ -7,6 +7,12 @@ local function sprite(name)
|
||||||
return '__248k__/ressources/electronic/el_tank/el_tank_'..name
|
return '__248k__/ressources/electronic/el_tank/el_tank_'..name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local tank_color = {r=1.7,g=1.7,b=1.7}
|
||||||
|
|
||||||
|
if data.raw["storage-tank"]["storage-tank"] then
|
||||||
|
tank_color = data.raw["storage-tank"]["storage-tank"].map_color
|
||||||
|
end
|
||||||
|
|
||||||
--item
|
--item
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
|
@ -103,6 +109,6 @@ data:extend({
|
||||||
production_type = "input-output"
|
production_type = "input-output"
|
||||||
},
|
},
|
||||||
window_bounding_box = {{0,0},{1,1}},
|
window_bounding_box = {{0,0},{1,1}},
|
||||||
map_color = {r=1.7,g=1.7,b=1.7},
|
map_color = tank_color,
|
||||||
},
|
},
|
||||||
})
|
})
|
Loading…
Add table
Add a link
Reference in a new issue