/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.
This commit is contained in:
Kane York 2013-10-05 14:07:06 -07:00
parent e8b886fcc6
commit 0cd0919447

View File

@ -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());