From 02b8e92d6b48189e3957c9157f75ced802577696 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 27 Jun 2025 23:40:19 -0400 Subject: [PATCH] Reduce the amount of unlocks to what's actually possible This stops the !unlock all debug command from crashing the server. There's only 511 possible unlocks in the game, I guess. --- resources/scripts/commands/debug/Unlock.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/commands/debug/Unlock.lua b/resources/scripts/commands/debug/Unlock.lua index 39154dd..32d1de1 100644 --- a/resources/scripts/commands/debug/Unlock.lua +++ b/resources/scripts/commands/debug/Unlock.lua @@ -13,7 +13,7 @@ function onCommand(args, player) end if parts[1] == "all" then - for i = 0, 1000, 1 do + for i = 0, 511, 1 do player:unlock(i) end printf(player, "Everything is unlocked!", id)