More over i tried to do some debugging and did this:
Code: Select all
script.on_event(defines.events.on_marked_for_deconstruction, function(event)
local entity = event.entity
local player = game.players[event.player_index]
player.print(tostring(entity.destructible) .. "/" .. tostring(entity.minable))
end)
also i checked the values in tick event and they were false/false, canceling deconstruction returns them back to false/false i guess since i cant remove them with player if i try to do so.