mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 00:38:14 +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.
|
* @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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user