diff --git a/lua/entities/gmod_wire_clutch.lua b/lua/entities/gmod_wire_clutch.lua index 75eec1250a..4b4101884e 100644 --- a/lua/entities/gmod_wire_clutch.lua +++ b/lua/entities/gmod_wire_clutch.lua @@ -228,7 +228,7 @@ function ENT:TriggerInput( iname, value ) local Delay = numconstraints / maxrate self.ClutchDelay = true - timer.Create( "wire_clutch_delay_" .. tostring(self:EntIndex()), Delay, 0, function() ClutchDelayEnd(self) end ) + timer.Create( "wire_clutch_delay_" .. tostring(self:EntIndex()), Delay, 1, function() ClutchDelayEnd(self) end ) else -- This should only happen if an error prevents the ClutchDelayEnd function from being called @@ -243,6 +243,11 @@ function ENT:TriggerInput( iname, value ) end end +function ENT:OnRemove() + timer.Remove("wire_clutch_delay_" .. tostring(self:EntIndex())) + BaseClass.OnRemove(self) +end + --[[-------------------------------------------------------