From 91fe1d6cc8e875025407cfd7b244ce08a814c5f4 Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Tue, 16 Jul 2024 21:32:27 +1200 Subject: [PATCH] No icon size error on startup #997 --- angelsrefining/changelog.txt | 1 + angelsrefining/prototypes/angels-functions.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/angelsrefining/changelog.txt b/angelsrefining/changelog.txt index aa6627da8..c91774c08 100644 --- a/angelsrefining/changelog.txt +++ b/angelsrefining/changelog.txt @@ -5,6 +5,7 @@ Date: ??? - Fixed when placing an electric offshore waterpump over its ghost, the module request would be forgotten (973) - Fixed crash when upgrading blueprints (978) - Fixed crash when removing 'angelspump' mod (test mod, merged into Angel's Refining) (992) + - Fixed crash on startup with error message No icon size defined for icon (997) Changes: - Added Ore Sorting Facility 5. Catalyst sorting requires a higher tier ore sorting facility (979) --------------------------------------------------------------------------------------------------- diff --git a/angelsrefining/prototypes/angels-functions.lua b/angelsrefining/prototypes/angels-functions.lua index ed47a9c23..5ff810f9e 100644 --- a/angelsrefining/prototypes/angels-functions.lua +++ b/angelsrefining/prototypes/angels-functions.lua @@ -1548,7 +1548,7 @@ function angelsmods.functions.modify_barreling_icon() }) end if fluid.icons then - item.icons = util.combine_icons(item.icons, fluid.icons, { scale = 16 / icon_size, shift = { 0, 5 } }) + item.icons = util.combine_icons(item.icons, fluid.icons, { scale = 16 / icon_size, shift = { 0, 5 } }, icon_size) end end end