mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26: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));
|
str = String.valueOf(cfg.getInt(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str == "0") {
|
if (str.equals("0")) {
|
||||||
str = "No value set for '" + key + "'";
|
str = "No value set for '" + key + "'";
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
|
Loading…
Reference in New Issue
Block a user