This commit is contained in:
2023-10-03 02:43:54 +09:00
parent 4015e5058a
commit 189a3b51b6

View File

@@ -128,11 +128,9 @@ local function apply_module(player, area, machine, module)
local m_current_recipe = entity.get_recipe()
if m_current_recipe ~= nil then
if module_allowed[m_current_recipe.name] ~= nil then
if module_allowed[m_current_recipe.name] then
entity.surface.create_entity{name='item-request-proxy', target=entity, position=entity.position, force=entity.force, modules=module}
end
end
else
entity.surface.create_entity{name='item-request-proxy', target=entity, position=entity.position, force=entity.force, modules=module}