[1.0.0][Modding] Ghost Lost in Migration When Changing Entity Type
Posted: Sat Oct 03, 2020 3:41 am
If an entity has a ghost placed, then that entity is migrated to an entity with a different type, the normal entities will be mirgated correctly but the ghosts disappear and are not migrated.
I have attached a sample mod to make this happen. The save is from the original run, where I had a "foo" and a "bar" logistic chest. A ghost and real entity of each was created. I then upgraded the version to 0.2.0, migrated "foo" to "qux", which is a container. When this version of the mod is loaded, the foo ghost is not migrated.
From the output it looks almost like the ghost is migrated, but then removed for some reason.
I have attached a sample mod to make this happen. The save is from the original run, where I had a "foo" and a "bar" logistic chest. A ghost and real entity of each was created. I then upgraded the version to 0.2.0, migrated "foo" to "qux", which is a container. When this version of the mod is loaded, the foo ghost is not migrated.
From the output it looks almost like the ghost is migrated, but then removed for some reason.