File tree Expand file tree Collapse file tree
src/main/java/org/mvplugins/multiverse/core/world/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,14 +120,16 @@ public FolderStatus checkFolder(@Nullable String worldName) {
120120 if (worldName == null ) {
121121 return FolderStatus .DOES_NOT_EXIST ;
122122 }
123- File worldFolder = BukkitCompatibility . getWorldFoldersDirectory (). resolve ( worldName ). toFile ();
123+
124124 if (BukkitCompatibility .isUsingNewDimensionStorage ()) {
125125 File oldWorldFolder = Bukkit .getWorldContainer ().toPath ().resolve (worldName ).toFile ();
126126 if (checkFolder (oldWorldFolder ) == FolderStatus .VALID ) {
127127 return FolderStatus .REQUIRES_MIGRATION ;
128128 }
129+ worldName = worldName .toLowerCase (Locale .ENGLISH ); // namespace is case-insensitive and stored as lowercase
129130 }
130131
132+ File worldFolder = BukkitCompatibility .getWorldFoldersDirectory ().resolve (worldName ).toFile ();
131133 return checkFolder (worldFolder );
132134 }
133135
You can’t perform that action at this time.
0 commit comments