Using ModuleInserter (https://mods.factorio.com/mod/ModuleInserter) to batch update a bunch of miners from one module configuration to another causes an error which crashes the game when a Repair Turret tries to remove a module;
The mod Repair Turret (0.5.0) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event Repair_Turret::on_tick (ID 0)
Repair_Turret/script/repair_turret.lua:753: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
Repair_Turret/script/repair_turret.lua:753: in function 'deconstruct_entity'
Repair_Turret/script/repair_turret.lua:830: in function 'update_turret'
Repair_Turret/script/repair_turret.lua:912: in function 'check_turret_update'
Repair_Turret/script/repair_turret.lua:1015: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>