Skip to content

Commit 259c2de

Browse files
committed
Format Code
1 parent 045a872 commit 259c2de

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

boblogistics/control.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ end
360360
function bobmods.logistics.check_range(event)
361361
local player = game.players[event.player_index]
362362
local entity = player.selected
363-
if entity
363+
if
364+
entity
364365
and entity.type == "inserter"
365366
and player.can_reach_entity(entity)
366367
and not global.bobmods.logistics.blacklist[entity.name]
@@ -377,9 +378,7 @@ script.on_configuration_changed(function(event)
377378
force.reset_technology_effects()
378379
end
379380

380-
if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and
381-
not game.active_mods["bobinserters"] then
382-
381+
if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and not game.active_mods["bobinserters"] then
383382
script.on_event("bob-inserter-long", bobmods.logistics.check_range)
384383
end
385384
end)
@@ -389,9 +388,7 @@ script.on_init(function(event)
389388
bobmods.logistics.player_setup(player.index)
390389
end
391390

392-
if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and
393-
not game.active_mods["bobinserters"] then
394-
391+
if settings.startup["bobmods-logistics-inserteroverhaul"].value == true and not game.active_mods["bobinserters"] then
395392
script.on_event("bob-inserter-long", bobmods.logistics.check_range)
396393
end
397394
end)

0 commit comments

Comments
 (0)