Categories: Improve automatic ore categorization

This function is now executed after registering all recipes
within unified_inventory to properly register all item drops
as ores.
This commit is contained in:
SmallJoker
2024-01-13 10:40:25 +01:00
parent eb3bb03ebf
commit 004a39aaf7
3 changed files with 77 additions and 75 deletions

View File

@ -215,7 +215,7 @@ local function stack_image_button(x, y, w, h, buttonname_prefix, item)
local group_name = name:sub(7)
local group_item = ui.get_group_item(group_name)
show_is_group = not group_item.sole
displayitem = group_item.item or "unknown"
displayitem = group_item.item or name
selectitem = group_item.sole and displayitem or name
end
local label = show_is_group and "G" or ""