From 8bd7526b43c303519c9de115e2b0a0035f74fe7c Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Tue, 6 Aug 2013 21:48:09 +0200 Subject: [PATCH] String values are compared using '.equals()' not '==' --- src/main/java/com/gmail/nossr50/config/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/config/Config.java b/src/main/java/com/gmail/nossr50/config/Config.java index 09d699c94..ccaa904e9 100644 --- a/src/main/java/com/gmail/nossr50/config/Config.java +++ b/src/main/java/com/gmail/nossr50/config/Config.java @@ -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;