mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
String values are compared using '.equals()' not '=='
This commit is contained in:
@ -286,7 +286,7 @@ public class Config extends AutoUpdateConfigLoader {
|
||||
str = String.valueOf(cfg.getInt(key));
|
||||
}
|
||||
|
||||
if (str == "0") {
|
||||
if (str.equals("0")) {
|
||||
str = "No value set for '" + key + "'";
|
||||
}
|
||||
return str;
|
||||
|
Reference in New Issue
Block a user