[0.16.21] Unminable entity is deconstructible

Bugs that are actually features.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.16.21] Unminable entity is deconstructible

Post by eradicator »

An entity that is modded to be unminable is infact unminable by the player but can still be deconstructed by bots.
Minimal example:

Code: Select all

data.raw["assembling-machine"]["assembling-machine-3"].minable = nil
Rseding91
Factorio Staff
Factorio Staff
Posts: 16102
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.21] Unminable entity is deconstructible

Post by Rseding91 »

Thanks for the report. That's working as intended: robots can deconstruct things regardless of them having a mining result. If you don't want robots to be able to deconstruct an entity you can use the "not-deconstructable" entity prototype flag.
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.16.21] Unminable entity is deconstructible

Post by eradicator »

Rseding91 wrote:Thanks for the report. That's working as intended: robots can deconstruct things regardless of them having a mining result. If you don't want robots to be able to deconstruct an entity you can use the "not-deconstructable" entity prototype flag.
Thanks for the hint (works! :)). I rememberd the recent report about non-deconstructibility of entities without a mining result, but couldn't find the thread anymore. And i assumed that as my entity also has neither a mining_time nor hardness it would be unrelated. Using a special flag for that certainly is difficult to discover :/.
Post Reply

Return to “Not a bug”