From 58c13c1f73b291efa03dd9eaff2cb4ccb2b45b32 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:42:27 +0800 Subject: [PATCH] Copy spawn location when cloning world --- .../com/onarandombox/MultiverseCore/worldnew/WorldManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java b/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java index 69e884e2..8117c645 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java @@ -531,6 +531,9 @@ public class WorldManager { }) .onSuccess(newWorld -> { cloneWorldTransferData(options, newWorld); + if (options.keepWorldConfig()) { + newWorld.setSpawnLocation(options.world().getSpawnLocation()); + } saveWorldsConfig(); }); }