Page 1 of 1

Targeted Fast Replace

Posted: Mon Oct 20, 2025 3:40 am
by PennyJim
I currently have a pretty bad bug in the mod Wide Containers. I previously tried 'fixing' one of the causes with a bug report: 130389
But it's been understandably deemed "not a bug".

Because the actual root of my issue was the LuaSurface::create_entity fast replace replacing both the marked-for-deconstruction entity and the ghost I was actually targeting.
The proposed solution of LuaEntity::order_upgrade is more limited than fast replace is, making it not feasible for my specific use case of cross-type replacing.

I am requesting that we get a LuaEntity::fast_replace or maybe add an argument of `fast_replace_target` to the create_entity params so it very specifically targets one entity in its fast replacing instead of multiple that might be overlapping.

Re: Targeted Fast Replace

Posted: Mon Oct 20, 2025 5:17 am
by curiosity