From da7b4ee23b02a43c662afae5d24744dcb3bb3aaa Mon Sep 17 00:00:00 2001 From: Major- Date: Sat, 15 Feb 2014 22:34:16 +0000 Subject: [PATCH] Fix bug where wrong integer value of privacy state would be returned. --- src/org/apollo/game/model/settings/PrivacyState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/apollo/game/model/settings/PrivacyState.java b/src/org/apollo/game/model/settings/PrivacyState.java index 5827670c..ac41576b 100644 --- a/src/org/apollo/game/model/settings/PrivacyState.java +++ b/src/org/apollo/game/model/settings/PrivacyState.java @@ -74,8 +74,8 @@ public enum PrivacyState { * * @return The numerical value used by the client. */ - public int toInteger() { - return value; + public int toInteger(boolean chat) { + return chat ? value : (value == 0 ? 0 : value - 1); } } \ No newline at end of file