diff --git a/Bio_Industries_2/prototypes/compound_entities/hidden_entities.lua b/Bio_Industries_2/prototypes/compound_entities/hidden_entities.lua index aca6388..5845910 100644 --- a/Bio_Industries_2/prototypes/compound_entities/hidden_entities.lua +++ b/Bio_Industries_2/prototypes/compound_entities/hidden_entities.lua @@ -180,7 +180,7 @@ BI.add_layer = function(layers, data) BioInd.check_args(data, "table", "layer data") layers = layers or {} - local hr_name = data.hr_name + local name = data.name local priority = data.priority local height = data.height local width = data.width @@ -188,7 +188,7 @@ BI.add_layer = function(layers, data) local shadow = data.shadow layers[#layers + 1] = { - filename = hr_name, + filename = name, priority = priority or "low", width = width and width * 2, height = height and height * 2, diff --git a/Bio_Industries_2/prototypes/compound_entities/hidden_panels.lua b/Bio_Industries_2/prototypes/compound_entities/hidden_panels.lua index 2c41057..ca70e20 100644 --- a/Bio_Industries_2/prototypes/compound_entities/hidden_panels.lua +++ b/Bio_Industries_2/prototypes/compound_entities/hidden_panels.lua @@ -61,12 +61,12 @@ for panel_name, locale_name in pairs(BI.hidden_entities.types[h_key]) do panel.BI_add_icon = true panel.picture = {} - panel.picture.layers = BI.add_layer(panel.picture.layers, { + panel.picture = BI.add_layer(panel.picture, { name = BioInd.modRoot .. "/graphics/entities/bio_solar_farm/Bio_Solar_Boiler.png", size = 288 }) panel.overlay = {} - panel.overlay.layers = table.deepcopy(panel.picture.layers) + panel.overlay = table.deepcopy(panel.picture) panel.max_health = 400 panel.render_no_power_icon = true