From 5ddf3fe34f9333a99c2f43aef7a7e59f3f664b50 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sat, 21 Feb 2026 19:49:59 +0100 Subject: [PATCH] fix(minimap): restore nested previous_recipe name access Furnace previous_recipe ids are nested under prev.name.name in this context. Restore the original access path and leave an inline maintainer note to prevent repeat regressions. --- plugins/minimap/module/minimap.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/minimap/module/minimap.lua b/plugins/minimap/module/minimap.lua index 4cfaf03e..52f5099d 100644 --- a/plugins/minimap/module/minimap.lua +++ b/plugins/minimap/module/minimap.lua @@ -187,7 +187,8 @@ local function update_entity_recipe(entity) elseif entity.type == "furnace" then local prev = entity.previous_recipe if prev and prev.name then - recipe = prev.name + -- Factorio furnaces expose previous_recipe with the id nested at previous_recipe.name.name. + recipe = prev.name.name end end @@ -510,7 +511,7 @@ local function init() elseif entity.type == "furnace" then local prev = entity.previous_recipe if prev and prev.name then - recipe = { name = prev.name } + recipe = { name = prev.name.name } end end if recipe then