Browse Source

/mcconvert: Fix mismatched type in list.remove() call

The databaseTypes collection is a List<String>, so attempting to remove a DatabaseType object will have no effect.
Kane York 11 years ago
parent
commit
0cd0919447

+ 1 - 1
src/main/java/com/gmail/nossr50/commands/database/McconvertCommand.java

@@ -45,7 +45,7 @@ public class McconvertCommand implements TabExecutor {
         }
 
         // Custom stuff
-        databaseTypes.remove(DatabaseType.CUSTOM);
+        databaseTypes.remove(DatabaseType.CUSTOM.toString());
 
         if (mcMMO.getDatabaseManager().getDatabaseType() == DatabaseType.CUSTOM) {
             databaseTypes.add(DatabaseManagerFactory.getCustomDatabaseManagerClass().getName());