Skip to content

Commit

Permalink
Merge pull request #593 from MattJeanes/dev
Browse files Browse the repository at this point in the history
HotFix: Timer produces error before "Initialize" hook
  • Loading branch information
MattJeanes authored Jan 18, 2022
2 parents 3f6ab8c + 9ed9f12 commit 1b20c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/entities/gmod_tardis_interior/modules/sh_timer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function ENT:GetTimer(id)
end

ENT:AddHook("Think", "timers", function(self)
if not self.timers then return end
for k,v in pairs(self.timers)
do
if CurTime() > v[1] then
Expand Down

0 comments on commit 1b20c63

Please sign in to comment.