From 29cce6714a3ee62749fa25c3a7859483075b6f17 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 28 Jul 2020 18:04:06 +1000 Subject: [PATCH] SPIGOT-6034: World.getWorldFolder() includes the dot in the path --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index a7569471c4..3a1280ac27 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -1881,7 +1881,7 @@ public class CraftWorld implements World { @Override public File getWorldFolder() { - return world.convertable.getWorldFolder(SavedFile.ROOT).toFile(); + return world.convertable.getWorldFolder(SavedFile.ROOT).toFile().getParentFile(); } @Override