From 8668927b1956134622714489f5850f3f26c6e64a Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Tue, 9 Jun 2020 01:31:52 +0300 Subject: [PATCH] test --- WeakAuras/RegionTypes/RegionPrototype.lua | 2 +- WeakAuras/WeakAuras.lua | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/WeakAuras/RegionTypes/RegionPrototype.lua b/WeakAuras/RegionTypes/RegionPrototype.lua index eb49626..ec10051 100644 --- a/WeakAuras/RegionTypes/RegionPrototype.lua +++ b/WeakAuras/RegionTypes/RegionPrototype.lua @@ -267,7 +267,7 @@ local function SoundPlay(self, options) SoundPlayHelper(self); local loop = options.do_loop or options.sound_type == "Loop"; - if (loop and options.sound_repeat and options.sound_repeat < WeakAuras.maxTimerDuration) then + if (loop and options.sound_repeat) then self.soundRepeatTimer = WeakAuras.timer:ScheduleRepeatingTimer(SoundPlayHelper, options.sound_repeat, self); end WeakAuras.StopProfileSystem("sound"); diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua index 829c415..b727e5c 100644 --- a/WeakAuras/WeakAuras.lua +++ b/WeakAuras/WeakAuras.lua @@ -40,13 +40,7 @@ function WeakAuras:Mixin(object, ...) end function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...) - if (delay < WeakAuras.maxTimerDuration) then - if delay + GetTime() > WeakAuras.maxUpTime then - WeakAuras.prettyPrint(WeakAuras.L["Can't schedule timer with %i, due to a World of Warcraft Bug with high computer uptime. (Uptime: %i). Please restart your Computer."]:format(delay, GetTime())) - return - end - return self:ScheduleTimer(func, delay, ...); - end + return self:ScheduleTimer(func, delay, ...); end local LDB = LibStub:GetLibrary("LibDataBroker-1.1")