From fb5bab6e92744f2d6c4d718bbe04e627313dee48 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 10 Aug 2013 22:24:13 +0200 Subject: [PATCH] String values are compared using '.equals()' not '==' --- .../com/gmail/nossr50/commands/database/MmoupdateCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java b/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java index a3eb4e939..5df746e87 100644 --- a/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java @@ -38,10 +38,10 @@ public class MmoupdateCommand implements TabExecutor { } DatabaseManager oldDb; - if (oldType == "sql") { + if (oldType.equals("sql")) { oldDb = DatabaseManagerFactory.createSQLDatabaseManager(); } - else if (oldType == "flatfile") { + else if (oldType.equals("flatfile")) { oldDb = DatabaseManagerFactory.createFlatfileDatabaseManager(); } else try {