[2.0.24] Document asymmetric behavior of LuaEntity::minable
Posted: Thu Dec 12, 2024 3:28 pm
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.
Request to update the LuaEntity:minable description to reflect the extra conditions that are AND'd with the internal flag when reading.
Not knowing about this behavior has resulted in a long-standing bug in some of my mods.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.).