File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 360360function 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
385384end )
@@ -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
397394end )
You can’t perform that action at this time.
0 commit comments