From a722a5e74656d122b0bfa26cce08a3bb26048345 Mon Sep 17 00:00:00 2001 From: unknao Date: Wed, 25 Dec 2024 09:48:32 +0200 Subject: [PATCH] removed unnecessary logic --- lua/entities/gmod_wire_expression2/core/timer.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lua/entities/gmod_wire_expression2/core/timer.lua b/lua/entities/gmod_wire_expression2/core/timer.lua index 8d861a77a2..ed042a72ef 100644 --- a/lua/entities/gmod_wire_expression2/core/timer.lua +++ b/lua/entities/gmod_wire_expression2/core/timer.lua @@ -244,18 +244,9 @@ e2function void timerSetDelay(string name, number delay) end local entIndex = self.entity:EntIndex() - local internalName = luaTimerGetInternalName(entIndex, name) luaTimers[entIndex][name].delay = delay - if luaTimers[entIndex][name].repetitions > 0 then - local repsLeft = timer.RepsLeft(internalName) - if repsLeft == 0 then return end - - luaTimers[entIndex][name].repetitions = repsLeft - timer.Adjust(internalName, delay, repsLeft) - return - end - timer.Adjust(internalName, delay, 0) + timer.Adjust(luaTimerGetInternalName(entIndex, name), delay) end e2function number timerSetReps(string name, number repetitions)