Skip to content

Commit

Permalink
Fix create_solid_recipe_icon function
Browse files Browse the repository at this point in the history
Function was modifying the icons of the original item
  • Loading branch information
KiwiHawk committed Sep 4, 2024
1 parent f038cde commit 3b273f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angelsrefining/prototypes/angels-functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ function angelsmods.functions.create_solid_recipe_icon(bot_molecules_icon, solid
top_molecules_icon =
create_recipe_molecule_icons(top_molecules_icon, { { -11.5, -12 }, { 11.5, -12 }, { 0, -12 } }, 10.24 / 32)

local recipe_icons = get_icons(solid_item_name)
local recipe_icons = util.table.deepcopy(get_icons(solid_item_name))

for _, bot_molecule_icon in pairs(bot_molecules_icon) do
for _, bot_molecule_icon_layer in pairs(bot_molecule_icon) do
Expand Down

0 comments on commit 3b273f5

Please sign in to comment.