From 189a3b51b6bfee122890bbb4da78e200a2051509 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 3 Oct 2023 02:43:54 +0900 Subject: [PATCH] . --- modules/gui/module.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/gui/module.lua b/modules/gui/module.lua index 1afdef3d..0f561aa7 100644 --- a/modules/gui/module.lua +++ b/modules/gui/module.lua @@ -128,10 +128,8 @@ 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 + 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 else