mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Fix bug where wrong integer value of privacy state would be returned.
This commit is contained in:
1 parent
9622efa6db
commit
da7b4ee23b
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user