mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Fix bug where wrong integer value of privacy state would be returned.
This commit is contained in:
@@ -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