From a103eeca03a1a89dac888a888e53ee42580f11ec Mon Sep 17 00:00:00 2001 From: Denneisk <20892685+Denneisk@users.noreply.github.com> Date: Sun, 12 Nov 2023 21:43:39 -0500 Subject: [PATCH] Make the GC timer a tick below a second --- lua/entities/gmod_wire_expression2/core/selfaware.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/gmod_wire_expression2/core/selfaware.lua b/lua/entities/gmod_wire_expression2/core/selfaware.lua index de3cee296c..807b179f69 100644 --- a/lua/entities/gmod_wire_expression2/core/selfaware.lua +++ b/lua/entities/gmod_wire_expression2/core/selfaware.lua @@ -93,7 +93,7 @@ end) --[[******************************************************************************]]-- -- Name functions - +local SHORT_SECOND = 1 - engine.TickInterval() local function doSetName(self, this, name) local data_SetName = self.data.SetName if not data_SetName then @@ -109,7 +109,7 @@ local function doSetName(self, this, name) if totalChars >= 512 then return self:throw("You are sending too much data with setName!") end data_SetName._chars = totalChars - timer.Create("wire_doSetName_Cleanup" .. self.entity:EntIndex(), 1, 1, function() + timer.Create("wire_doSetName_Cleanup" .. self.entity:EntIndex(), SHORT_SECOND, 1, function() if self and self.data then self.data.SetName = nil end end)