File tree Expand file tree Collapse file tree
main/java/org/mvplugins/multiverse/core/world/options
test/java/org/mvplugins/multiverse/core/world Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,11 +120,11 @@ public boolean keepWorldBorder() {
120120 /**
121121 * Sets whether to save the world to disk before clone copying.
122122 *
123- * @param forceSaveInput Whether to save the world to disk before clone copying.
123+ * @param saveBukkitWorldInput Whether to save the world to disk before clone copying.
124124 * @return This {@link CloneWorldOptions} instance.
125125 */
126- public @ NotNull CloneWorldOptions saveBukkitWorld (boolean forceSaveInput ) {
127- this .saveBukkitWorld = forceSaveInput ;
126+ public @ NotNull CloneWorldOptions saveBukkitWorld (boolean saveBukkitWorldInput ) {
127+ this .saveBukkitWorld = saveBukkitWorldInput ;
128128 return this ;
129129 }
130130
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ class WorldManagerTest : TestWithMockBukkit() {
178178
179179 @Test
180180 fun `Clone world` () {
181- assertTrue(worldManager.cloneWorld(CloneWorldOptions .fromTo(world, " cloneworld" )).isSuccess)
181+ assertTrue(worldManager.cloneWorld(CloneWorldOptions .fromTo(world, " cloneworld" ).saveBukkitWorld( false ) ).isSuccess)
182182 val getWorld = worldManager.getLoadedWorld(" cloneworld" )
183183 assertTrue(getWorld.isDefined)
184184 val world = getWorld.get()
You can’t perform that action at this time.
0 commit comments