Skip to content

Commit dcb8a35

Browse files
authored
Merge pull request #3214 from Multiverse/chore/clone-command-test
Fix clone command test due to World#save being unimplemented
2 parents b9766f8 + dbcbcad commit dcb8a35

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/mvplugins/multiverse/core/world/options/CloneWorldOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/test/java/org/mvplugins/multiverse/core/world/WorldManagerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)