What event is fired when tile deconstruction is cancelled?

Place to get help with not working mods / modding interface.
Post Reply
AlexF
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jul 24, 2015 6:20 pm
Contact:

What event is fired when tile deconstruction is cancelled?

Post by AlexF »

Hello! I am having trouble with detecting cancellation of tiles deconstruction.

I have tried to add handler for on_cancelled_deconstruction event but it fires only for regular entities/buildings. It does not work for deconstructible-tile-proxy.

Does anyone have ideas about how to work around this issue?

My code snippet:

Code: Select all

script.on_event(defines.events.on_cancelled_deconstruction,
    function(event)
        if event.entity.name == "deconstructible-tile-proxy" then
            --- does not reach here
        else
            --- works for regular entities
        end
    end
)

Post Reply

Return to “Modding help”