I just noticed, that a change in 1.1 broke my mod "BotPrioritizer."
In a nutshell:
- I'm cloning a entity ghost directly over a existing one
- and then I'm destroying the original one.
Now I noticed that it isn't possible anymore to leverage this "bug" (I'd call it feature) for my mod. If a ghost is cloned onto another entity, the function will fail and return nil.
Is there any other way to 100% clone an entity, maybe without placing it first?
Can I "save away" the original entity in a variable, destroy it and then place it again? I tried table.deep_copy from the "flib" library and table.deepcopy from the regular "util" library, but as soon as I destroy the original entity, my copy also becomes invalid.
I'm rather new to modding, so I don't really have an overview over all the possibilites to copy entites. Hopefully someone can help!
Thanks in advance,
Chris