Cliff Deconstruct deprecated

by bob809

Allows robots to deconstruct cliffs using Cliff explosives.

Utilities
5 years ago
0.16
15

b Bad interaction with Factorissimo

6 years ago

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.

6 years ago

Thanks for the report, this is fixed in 0.0.5.

I haven't tested it with multiple surfaces yet, but I can't see any other places where there might be issues.

New response