Hi All,
Thanks for all the reports. The issue was that the light sources created by this mod are not meant to be minable, and up until now (AFAIK) never have been. For some reason the unminable property is being ignored when another entity is mined from the same tile; in the above example, mining the transport belt is also removing the hidden lamp unexpectedly. This means the background table which silently keeps track of each lamp (to remove the light source again if the parent entity is destroyed or rotated) is now out of sync. SO on rotation, it tries to access a lamp which is no longer there, and then crashes :)
I've added a validation check on rotation (which probably should have been added quite a long time ago) which prevents this. Now, if the lamp is missing, the out of date data will be cleared out and a new lamp created. I suspect this will also fix similar odd behaviors caused by interactions with other mods.
Thanks
Jack
p.s. FWIW it looks like this issue with the hidden lamps being minable only started somewhere in 0.18, 0.17 it doesn't happen. I'll have to scour through change notes to see if this is intentional behaviour, or raise a bug report with the main game devs.