mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
String values are compared using '.equals()' not '=='
This commit is contained in:
parent
90fcf35c34
commit
fb5bab6e92
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user