From 0cd0919447af59aab9f6d0aba112ffe077204296 Mon Sep 17 00:00:00 2001 From: Kane York Date: Sat, 5 Oct 2013 14:07:06 -0700 Subject: [PATCH] /mcconvert: Fix mismatched type in list.remove() call The databaseTypes collection is a List, so attempting to remove a DatabaseType object will have no effect. --- .../com/gmail/nossr50/commands/database/McconvertCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/database/McconvertCommand.java b/src/main/java/com/gmail/nossr50/commands/database/McconvertCommand.java index e5d6c3ddd..194f36b54 100644 --- a/src/main/java/com/gmail/nossr50/commands/database/McconvertCommand.java +++ b/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());