From 479cae039d7486fb3c04c1d867542d925427ce0a Mon Sep 17 00:00:00 2001 From: StyLuaFormatter Date: Wed, 23 Oct 2024 08:26:53 +0000 Subject: [PATCH] Format Code --- bobinserters/control.lua | 3 ++- boblogistics/control.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bobinserters/control.lua b/bobinserters/control.lua index 4f3b74451..ab2a1c2a7 100644 --- a/bobinserters/control.lua +++ b/bobinserters/control.lua @@ -679,7 +679,8 @@ script.on_event(defines.events.on_built_entity, function(event) entity_name = entity.ghost_name end - if (entity.type == "inserter" or (entity.type == "entity-ghost" and entity.ghost_type == "inserter")) + if + (entity.type == "inserter" or (entity.type == "entity-ghost" and entity.ghost_type == "inserter")) and not storage.bobmods.inserters.blacklist[entity_name] then bobmods.logistics.set_positions(entity, event.player_index) diff --git a/boblogistics/control.lua b/boblogistics/control.lua index 5281a4915..c44d7d79f 100644 --- a/boblogistics/control.lua +++ b/boblogistics/control.lua @@ -446,7 +446,8 @@ script.on_event(defines.events.on_built_entity, function(event) entity_name = entity.ghost_name end - if not game.active_mods["bobinserters"] + if + not game.active_mods["bobinserters"] and (entity.type == "inserter" or (entity.type == "entity-ghost" and entity.ghost_type == "inserter")) and not storage.bobmods.logistics.blacklist[entity_name] then