From a0b76de87651378f97a9e35210112d110dc4e083 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 10 Nov 2026 02:16:58 +0900 Subject: [PATCH] filter --- exp_scenario/module/control/vlayer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index a0f6723f..36de568b 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -103,7 +103,7 @@ end local allowed_items = {} --- @type table for _, name in pairs(items.allowed_categories["production"]) do - local item_in_category = prototypes.get_entity_filtered{filter = "type", type = name} + local item_in_category = prototypes.get_entity_filtered{filters = {filter = "type", type = name}} for _, item in pairs(item_in_category) do local item_name = item.name @@ -124,7 +124,7 @@ for _, name in pairs(items.allowed_categories["production"]) do end for _, name in pairs(items.allowed_categories["storage"]) do - local item_in_category = prototypes.get_entity_filtered{filter = "type", type = name} + local item_in_category = prototypes.get_entity_filtered{filters = {filter = "type", type = name}} for _, item in pairs(item_in_category) do local item_name = item.name