Page 1 of 1

[2.0.34] LuaEntity (pipe-to-ground) has invalid properties after being marked for deconstruction

Posted: Wed Feb 19, 2025 5:14 pm
by protocol_1903
When accessing the on_marked_for_deconstruction event, any LuaEntity of type `pipe-to-ground` cannot have it's `direction` property queried. If attempted, it crashes the game. This is likely due to it being in a deconstructed state. I attempted to get around this by temporarily reconstructing it, accessing the property, then deconstructing it again, but this doesn't work because the entity becomes invalid after being reconstructed.

I'm not at my computer at the minute, will post relevant screenshots when I get the chance.

Re: [2.0.34] LuaEntity (pipe-to-ground) has invalid properties after being marked for deconstruction

Posted: Wed Feb 19, 2025 5:27 pm
by boskid
Cannot reproduce.
02-19-2025, 18-27-14.png
02-19-2025, 18-27-14.png (367.32 KiB) Viewed 195 times