I'm experiencing a reproducible, consistent crash whenever I try to place a Loader in the editor. Doesn't seem to matter where I place it or which kind of loader. The actual crash is:
The mod Loaders modernized (2.1.3) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event loaders-modernized::on_built_entity (ID 6)
__loaders-modernized__/scripts/loaders-modernized.lua:49: attempt to index field 'fast_replace_variant' (a nil value)
stack traceback:
__loaders-modernized__/scripts/loaders-modernized.lua:49: in function 'handler'
__core__/lualib/event_handler.lua:72: in function <__core__/lualib/event_handler.lua:70>
Having a brief look, it seems to be happening at "local surface_data = storage.fast_replace_variant[entity.surface.index]". For whatever reason, it appears that the "storage" field is not being populated in the editor. I'm not up to tracking where the population takes place and why it might not happen, but that's the only explanation I can come up with. The loaders work perfectly fine in the actual game.