Tested in game version 2.0.21, the mod throws this error when trying to enable powered rails for a preexisting save
The mod James' Train Mod (2.0.6) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event James-Train-Mod::on_tick (ID 0)
James-Train-Mod/scripts/powered-rails.lua:307: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
James-Train-Mod/scripts/powered-rails.lua:307: in function 'UpdateTrains'
James-Train-Mod/scripts/powered-rails.lua:349: in function <James-Train-Mod/scripts/powered-rails.lua:346>