[0.14.3] Robots do not respect minable/destructible variable

Bugs that are actually features.
NosBit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Sep 04, 2016 2:19 pm
Contact:

[0.14.3] Robots do not respect minable/destructible variable

Post by NosBit »

So...i create an entity from a scenario script and set its destructible and minable variables to false then i try to use deconstruction planner on it and robots are removing it

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)
and the output when i try to deconstruct is true/true

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.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5403
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14.3] Robots do not respect minable/destructible variable

Post by Klonan »

I cannot reproduce the issue,

When the entitiy is not minable and not destructible, they aren't being marked for deconstruction:
NosBit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Sep 04, 2016 2:19 pm
Contact:

Re: [0.14.3] Robots do not respect minable/destructible variable

Post by NosBit »

Sorry my bad it was the floor under it that was getting deconstructed and entity was going out of map.
Post Reply

Return to “Not a bug”