From 1d87be12e900f4bb87e9b2f66cdb25ac41504478 Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Sat, 16 Jul 2011 12:48:58 -0600 Subject: [PATCH] Fixed big oopsie in the Migrator - Thanks go out to MV2 tester Kane_Hart for this one! --- src/com/onarandombox/MultiverseCore/MVConfigMigrator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java b/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java index 0fb57f80..07f12315 100644 --- a/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java +++ b/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java @@ -31,15 +31,14 @@ public class MVConfigMigrator { // They didn't have MV 1 enabled... let's try and find the folder... File[] folders = folder.getParentFile().listFiles(); List folderList = Arrays.asList(folders); - File MV1Folder = null; for (File f : folderList) { if (f.getName().equalsIgnoreCase("MultiVerse")) { 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, "If you did, your configs were **NOT** migrated! Go Here: INSERTURLFORHELP"); return false;