Copy spawn location when cloning world

This commit is contained in:
Ben Woo 2023-09-11 16:42:27 +08:00
parent c0f2168ba4
commit 58c13c1f73
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8

View File

@ -531,6 +531,9 @@ public class WorldManager {
}) })
.onSuccess(newWorld -> { .onSuccess(newWorld -> {
cloneWorldTransferData(options, newWorld); cloneWorldTransferData(options, newWorld);
if (options.keepWorldConfig()) {
newWorld.setSpawnLocation(options.world().getSpawnLocation());
}
saveWorldsConfig(); saveWorldsConfig();
}); });
} }