I receive this error when placing a locomotive by hand:
Error while running event more-quality-scaling::on_built_entity (ID 6)
Invalid ItemID: expected LuaItemPrototype, LuaItemStack, LuaItem or string.
stack traceback:
[C]: in function 'insert'
more-quality-scaling/control.lua:120: in function 'restore_inventory'
more-quality-scaling/control.lua:274: in function <more-quality-scaling/control.lua:229>
When a bot place the locomotive its ok, but when placed by hand the game crash.