forked from Nexus/nexus
fix maxMagnitude value for power levels
(oops thats a xor not an exponent operator)
This commit is contained in:
parent
8fbfcde9c5
commit
850bd33b18
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class const PowerLevelField({
|
||||||
super.key,
|
super.key,
|
||||||
}) extends HookWidget {
|
}) extends HookWidget {
|
||||||
/// The furthest from zero Matrix allows integers to be.
|
/// The furthest from zero Matrix allows integers to be.
|
||||||
static const maxMagnitude = (2 ^ 53) - 1;
|
static const maxMagnitude = (1 << 53) - 1;
|
||||||
|
|
||||||
/// The level in [text], if it's one someone with [ownLevel] can set.
|
/// The level in [text], if it's one someone with [ownLevel] can set.
|
||||||
static int? levelFrom(String text, double ownLevel) => switch (int.tryParse(
|
static int? levelFrom(String text, double ownLevel) => switch (int.tryParse(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue