Skip to content

Conversation

@stevecheckoway
Copy link

The Lua API appears to have changed from Factorio 1.1. The on_object_destroyed event does not have a unit_number field. Instead, it has a useful_id field that, for entities, is the unit number.

This fixes deleting turbines from the map editor.

The Lua API appears to have changed from Factorio 1.1. The
`on_object_destroyed` event does not have a `unit_number` field.
Instead, it has a `useful_id` field that, for entities, is the unit
number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant