fix maxMagnitude value for power levels

(oops thats a xor not an exponent operator)
This commit is contained in:
Henry Hiles 2026-10-22 21:28:51 -04:00
commit 850bd33b18
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -13,7 +13,7 @@ class const PowerLevelField({
super.key,
}) extends HookWidget {
/// 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.
static int? levelFrom(String text, double ownLevel) => switch (int.tryParse(