[1.1] on_pre_ghost_deconstructed fires on item-requester-proxy

Post Reply
Natha
Fast Inserter
Fast Inserter
Posts: 185
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

[1.1] on_pre_ghost_deconstructed fires on item-requester-proxy

Post by Natha »

The event on_pre_ghost_deconstructed (and maybe on_pre_ghost_upgraded too) also fires if you deconstruct an item request proxy. That causes errors like:
Error while running event **::on_pre_ghost_deconstructed (ID 96)
Entity is not ghost.
which is nothing you expect on events that are for ghosts.

If this behaviour is intended (I understand that item request proxies are not "real" entities) you should at least have a mention in the Docs.


Bilka
Factorio Staff
Factorio Staff
Posts: 3157
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [1.1] on_pre_ghost_deconstructed fires on item-requester-proxy

Post by Bilka »

Moving this to doc requests for the doc improvement. (commit hash of behaviour change: dd69077)
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Bilka
Factorio Staff
Factorio Staff
Posts: 3157
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [1.1] on_pre_ghost_deconstructed fires on item-requester-proxy

Post by Bilka »

Added to the docs with the next version (1.1.102).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Requests”