Hi Klonan,
it seems that your mod is interfering with some value, i.e. "player" data. even game.player seems to be set to null, due to your mod. It sounds weird to say so, maybe you have any idea how to fix it? Try with my mods (TrainSignalSender, for instance). You can replace "player" with "game.player", but at the end, you still have some crashes.