Fix bug where wrong integer value of privacy state would be returned.

This commit is contained in:
Major-
2014-02-15 22:34:16 +00:00
parent 9622efa6db
commit da7b4ee23b
@@ -74,8 +74,8 @@ public enum PrivacyState {
* *
* @return The numerical value used by the client. * @return The numerical value used by the client.
*/ */
public int toInteger() { public int toInteger(boolean chat) {
return value; return chat ? value : (value == 0 ? 0 : value - 1);
} }
} }