Hi, I have the same problem:
"when you enter a factory building with the latest autotrash(4.1.x) loaded"
Message-window of broken game:
The mod Factorissimo2 caused a non-recoverable error.
Please report this error to the mod author.
Error while running event Factorissimo2::on_tick (ID 0)
The mod Auto Trash caused a non-recoverable error.
Please report this error to the mod author.
Error while running event AutoTrash::on_player_changed_position (ID 81)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
AutoTrash/control.lua:331: in function <AutoTrash/control.lua:327>
stack traceback:
[C]: in function 'index'
__AutoTrash/control.lua:331: in function <AutoTrash/control.lua:327>
stack traceback:
Factorissimo2/control.lua:984: in function 'enter_factory'
Factorissimo2/control.lua:1009: in function 'teleport_players'
Factorissimo2/control.lua:1101: in function <Factorissimo2/control.lua:1071>
stack traceback:
[C]: in function 'teleport'
Factorissimo2/control.lua:984: in function 'enter_factory'
Factorissimo2/control.lua:1009: in function 'teleport_players'
Factorissimo2/control.lua:1101: in function <Factorissimo2/control.lua:1071>