diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-08 01:11:15 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-08 01:11:15 +0200 |
commit | 8acb247bcdb66802ca52540aeb7364075c14e528 (patch) | |
tree | 0f92599c37d6a14657eb6780ada8b6b0d82a50a1 /src/util | |
parent | 1.3.42 (diff) | |
download | server-8acb247bcdb66802ca52540aeb7364075c14e528.tar.xz |
:bug: fix bitfield resolve
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/BitField.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/BitField.ts b/src/util/BitField.ts index 5cccd352..728dc632 100644 --- a/src/util/BitField.ts +++ b/src/util/BitField.ts @@ -135,7 +135,7 @@ export class BitField { if (Array.isArray(bit)) { // @ts-ignore const resolve = this.constructor?.resolve || this.resolve; - return bit.map((p) => resolve(p)).reduce((prev, p) => BigInt(prev) | BigInt(p), 0n); + return bit.map((p) => resolve.call(this, p)).reduce((prev, p) => BigInt(prev) | BigInt(p), 0n); } if (typeof bit === "string" && typeof FLAGS[bit] !== "undefined") return FLAGS[bit]; throw new RangeError("BITFIELD_INVALID: " + bit); |