mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-10 21:01:17 +01:00
Copy spawn location when cloning world
This commit is contained in:
parent
c0f2168ba4
commit
58c13c1f73
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user