fix(timer): add async argument to restart method (#567)

This commit is contained in:
404
2024-05-02 01:06:12 -05:00
committed by GitHub
parent 75f4ecbbea
commit fcf198b21f

View File

@@ -98,12 +98,12 @@ function timer:isPaused()
return self.private.paused
end
function timer:restart()
function timer:restart(async)
self:forceEnd(false)
Wait(0)
self.private.currentTimeLeft = self.private.initialTime
self.private.startTime = 0
self:start()
self:start(async)
end
function timer:getTimeLeft(format)