Error while running event CliffDeconstruct::on_robot_built_entity (ID 14)
LuaEntity belongs to surface nauvis (index 0) but a LuaEntity belonging to surface Factory floor 23 (index 24) was expected.
stack traceback:
CliffDeconstruct/control.lua:84: in function <CliffDeconstruct/control.lua:70>
I did some investigation, line 84 should start with "entity.surface", rather than "game.players[1].surface", as the first player may not always be on the same surface as the cliff being removed.