From 73fea6194a35adfebfdf5c5781492e93a4a13be8 Mon Sep 17 00:00:00 2001 From: march <106459595+marchc1@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:57:57 -0700 Subject: [PATCH] Localize SysTime for sethook (#1849) * Localize SysTime for sethook * Put it here instead * Move it again --- lua/starfall/instance.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/starfall/instance.lua b/lua/starfall/instance.lua index adc536a29..025cf4b9f 100644 --- a/lua/starfall/instance.lua +++ b/lua/starfall/instance.lua @@ -6,6 +6,7 @@ local dsethook, dgethook = debug.sethook, debug.gethook local dgetmeta = debug.getmetatable +local SysTime = SysTime if SERVER then SF.cpuQuota = CreateConVar("sf_timebuffer", 0.005, FCVAR_ARCHIVE, "The max average the CPU time can reach.")