mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-26 04:25:37 +01:00
Fixed big oopsie in the Migrator - Thanks go out to MV2 tester Kane_Hart for this one!
This commit is contained in:
parent
eaeb980aeb
commit
1d87be12e9
@ -31,15 +31,14 @@ public class MVConfigMigrator {
|
|||||||
// They didn't have MV 1 enabled... let's try and find the folder...
|
// They didn't have MV 1 enabled... let's try and find the folder...
|
||||||
File[] folders = folder.getParentFile().listFiles();
|
File[] folders = folder.getParentFile().listFiles();
|
||||||
List<File> folderList = Arrays.asList(folders);
|
List<File> folderList = Arrays.asList(folders);
|
||||||
File MV1Folder = null;
|
|
||||||
for (File f : folderList) {
|
for (File f : folderList) {
|
||||||
if (f.getName().equalsIgnoreCase("MultiVerse")) {
|
if (f.getName().equalsIgnoreCase("MultiVerse")) {
|
||||||
this.core.log(Level.INFO, "Found the MultiVerse 1 config folder. Starting Config Migration...");
|
this.core.log(Level.INFO, "Found the MultiVerse 1 config folder. Starting Config Migration...");
|
||||||
MV1Folder = f;
|
oldFolder = f;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (MV1Folder == null) {
|
if (oldFolder == null) {
|
||||||
this.core.log(Level.INFO, "Did not find the MV1 Folder. If you did not have MultiVerse 1 installed and this is the FIRST time you're running MV2, this message is GOOD. ");
|
this.core.log(Level.INFO, "Did not find the MV1 Folder. If you did not have MultiVerse 1 installed and this is the FIRST time you're running MV2, this message is GOOD. ");
|
||||||
this.core.log(Level.INFO, "If you did, your configs were **NOT** migrated! Go Here: INSERTURLFORHELP");
|
this.core.log(Level.INFO, "If you did, your configs were **NOT** migrated! Go Here: INSERTURLFORHELP");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user