Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Dec 20, 2023
1 parent 045a872 commit 259c2de
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions boblogistics/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ end
function bobmods.logistics.check_range(event)
local player = game.players[event.player_index]
local entity = player.selected
if entity
if
entity
and entity.type == "inserter"
and player.can_reach_entity(entity)
and not global.bobmods.logistics.blacklist[entity.name]
Expand All @@ -377,9 +378,7 @@ script.on_configuration_changed(function(event)
force.reset_technology_effects()
end

if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and
not game.active_mods["bobinserters"] then

if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and not game.active_mods["bobinserters"] then
script.on_event("bob-inserter-long", bobmods.logistics.check_range)
end
end)
Expand All @@ -389,9 +388,7 @@ script.on_init(function(event)
bobmods.logistics.player_setup(player.index)
end

if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and
not game.active_mods["bobinserters"] then

if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and not game.active_mods["bobinserters"] then
script.on_event("bob-inserter-long", bobmods.logistics.check_range)
end
end)
Expand Down

0 comments on commit 259c2de

Please sign in to comment.