Skip to content

Commit b5e1cd4

Browse files
Cheater_Detection/Main: fix
1 parent 9a39b0f commit b5e1cd4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Cheater_Detection/Main.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,6 @@ local function OnCreateMove(cmd)
374374
-- end
375375
Profiler.End("PlayerCache_Sync")
376376

377-
if enableValveCheck then
378-
Profiler.Begin("ValveCheck_Deferred")
379-
ValveCheck.Tick()
380-
Profiler.End("ValveCheck_Deferred")
381-
end
382-
383377
-- Skip all detector work on frames where the game tick hasn't advanced
384378
-- (CreateMove fires per frame, game ticks at 66 Hz)
385379
local curTick = globals.TickCount()
@@ -393,6 +387,12 @@ local function OnCreateMove(cmd)
393387
Evidence.ApplyDecay()
394388
Profiler.End("Evidence_Decay")
395389

390+
if enableValveCheck then
391+
Profiler.Begin("ValveCheck_Deferred")
392+
ValveCheck.Tick()
393+
Profiler.End("ValveCheck_Deferred")
394+
end
395+
396396
local isDebug = isDebugEnabled()
397397
local localID = tostring(Common.GetSteamID64(localPlayer) or "")
398398
local stateTable = PlayerCache.GetActiveTable()

0 commit comments

Comments
 (0)