From 16f0c006b9c71fd1b9fe0b325744a084397c3c19 Mon Sep 17 00:00:00 2001 From: Brevven Date: Tue, 24 Dec 2024 02:40:27 -0800 Subject: [PATCH] up --- data-util.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/data-util.lua b/data-util.lua index 53af1ba..8ac4744 100644 --- a/data-util.lua +++ b/data-util.lua @@ -1061,6 +1061,17 @@ function util.set_icons(recipe_name, icons, options) end end +-- Set tech icons +function util.set_tech_icons(technology, icons, options) + if not should_force(options) and bypass(technology) then return end + if data.raw.technology[technology] then + me.add_modified(technology) + data.raw.technology[technology].icons = icons + data.raw.technology[technology].icon = nil + data.raw.technology[technology].icon_size = nil + end +end + -- Set recipe icons function util.set_item_icons(item_name, icons) if data.raw.item[item_name] then