mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +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;
|
DatabaseManager oldDb;
|
||||||
if (oldType == "sql") {
|
if (oldType.equals("sql")) {
|
||||||
oldDb = DatabaseManagerFactory.createSQLDatabaseManager();
|
oldDb = DatabaseManagerFactory.createSQLDatabaseManager();
|
||||||
}
|
}
|
||||||
else if (oldType == "flatfile") {
|
else if (oldType.equals("flatfile")) {
|
||||||
oldDb = DatabaseManagerFactory.createFlatfileDatabaseManager();
|
oldDb = DatabaseManagerFactory.createFlatfileDatabaseManager();
|
||||||
}
|
}
|
||||||
else try {
|
else try {
|
||||||
|
Loading…
Reference in New Issue
Block a user