From 75ba48ad22c427b1f8cfd99f6d3007f1c60ac9f9 Mon Sep 17 00:00:00 2001 From: PreLeyZero Date: Tue, 14 Jun 2022 00:03:19 +0200 Subject: [PATCH] silo tank map color fix --- prototypes/electronic/el_tank.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/prototypes/electronic/el_tank.lua b/prototypes/electronic/el_tank.lua index fbe6c9a..023df3e 100644 --- a/prototypes/electronic/el_tank.lua +++ b/prototypes/electronic/el_tank.lua @@ -7,6 +7,12 @@ local function sprite(name) return '__248k__/ressources/electronic/el_tank/el_tank_'..name 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 data:extend({ { @@ -103,6 +109,6 @@ data:extend({ production_type = "input-output" }, window_bounding_box = {{0,0},{1,1}}, - map_color = {r=1.7,g=1.7,b=1.7}, + map_color = tank_color, }, -}) +}) \ No newline at end of file