mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 15:54:52 +09:00
filter
This commit is contained in:
1 parent
131d3e41f2
commit
a0b76de876
1 file changed
+2
-2
@@ -103,7 +103,7 @@ end
|
||||
local allowed_items = {} --- @type table<string, Vlayer.ItemProperties>
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user