From 5f5bb7938c7d7fa0d5533ab1be17ff0b8c5e2a7b Mon Sep 17 00:00:00 2001 From: khtsly Date: Fri, 13 Feb 2026 20:23:14 +0700 Subject: [PATCH] rewrite(phase4): srry i have no choice :( --- src/Util/Identifier.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/Identifier.luau b/src/Util/Identifier.luau index c19e079..abd4807 100644 --- a/src/Util/Identifier.luau +++ b/src/Util/Identifier.luau @@ -1,7 +1,7 @@ --!optimize 2 --!native --@EternityDev -local BITS: number = 8 +local BITS: number = 16 local MAX_VALUE: number = bit32.lshift(1, BITS) - 1 local cache: { [string]: number } = {} @@ -13,7 +13,7 @@ return function(name: string): number if cached then return cached end - if count >= MAX_VALUE then + if count >= 255 then -- 255 is safer from collision warn("ran out of ids :(") return 0 end