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.
[2.0.34] LuaEntity (pipe-to-ground) has invalid properties after being marked for deconstruction
-
- Filter Inserter
- Posts: 278
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
[2.0.34] LuaEntity (pipe-to-ground) has invalid properties after being marked for deconstruction
If you need to reach me, message me on discord.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.