[2.0.24] Document asymmetric behavior of LuaEntity::minable

Place to report issues and suggest improvements to the API documentation.
robot256
Smart Inserter
Smart Inserter
Posts: 1201
Joined: Sun Mar 17, 2019 1:52 am
Contact:

[2.0.24] Document asymmetric behavior of LuaEntity::minable

Post by robot256 »

Ref: [2.0.23] LuaEntity minable always reads back as false

Request to update the LuaEntity:minable description to reflect the extra conditions that are AND'd with the internal flag when reading.
Lou wrote: Thu Dec 12, 2024 11:25 am Well, there is currently a disconnect between lua entity minable read and write. minable write (like setting minable = something via command) changes the entity minability flag. The read also has some mineability logic on top of reading the flag, namely for driven vehicles, and rail elements with dependent entities (trains, elevated rails etc.).
Not knowing about this behavior has resulted in a long-standing bug in some of my mods.
Post Reply

Return to “Documentation Improvement Requests”