diff --git a/PHI-CL/data/b/mig-c.lua b/PHI-CL/data/b/mig-c.lua index 44a353a..24f726e 100644 --- a/PHI-CL/data/b/mig-c.lua +++ b/PHI-CL/data/b/mig-c.lua @@ -169,7 +169,7 @@ local items = { type = 'tool', color = 'pink' }, - ['cyrogenic-science-pack'] = { + ['cryogenic-science-pack'] = { type = 'tool', color = 'blue' }, diff --git a/PHI-CL/data/b/mig.lua b/PHI-CL/data/b/mig.lua index 6b74414..5c4fc23 100644 --- a/PHI-CL/data/b/mig.lua +++ b/PHI-CL/data/b/mig.lua @@ -714,5 +714,13 @@ if items['tooltip'] and data.raw.item then table.insert(data.raw[v.type][k].custom_tooltip_fields, custom_tooltip) end + + if v.color and data.raw.recipe[k] then + if not data.raw.recipe[k].custom_tooltip_fields then + data.raw.recipe[k].custom_tooltip_fields = {} + end + + table.insert(data.raw.recipe[k].custom_tooltip_fields, custom_tooltip) + end end end