small updates + elytraFly hud

This commit is contained in:
kepler155c@gmail.com
2019-02-28 22:34:02 -05:00
parent 389038dc77
commit 838b7d5d69
6 changed files with 34 additions and 15 deletions

View File

@@ -231,20 +231,13 @@ _G._debug('STORAGE: Forcing full refresh')
return self:listItems(throttle)
end
local function Timer()
local ct = os.clock()
return function()
return os.clock() - ct
end
end
-- provide a consolidated list of items
function Storage:listItems(throttle)
if not self.dirty then
return self.cache
end
local timer = Timer()
local timer = Util.Timer()
local cache = { }
throttle = throttle or Util.throttle()