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