This commit is contained in:
kepler155c@gmail.com
2019-03-27 07:42:33 -04:00
parent 4d06a9a738
commit a181a58420
4 changed files with 9 additions and 3 deletions

View File

@@ -75,12 +75,14 @@ function page:eventHandler(event)
elseif event.type == 'quit' then
UI:exitPullEvents()
--[[
elseif event.type == 'focus_change' then
if event.focused == self.grid then
if not self.paused then
self:emit({ type = 'toggle' })
end
end
--]]
else
return UI.Page.eventHandler(self, event)

View File

@@ -212,7 +212,7 @@ function page:eventHandler(event)
self:transfer(item, count, 'requesting ' .. count .. ' ...')
else
Sound.play('entity.villager.no')
context:notify('nope ...')
context:notifyError('nope ...')
end
elseif event.type == 'plugin' then

View File

@@ -280,7 +280,7 @@ function Storage:listItems(throttle)
end
end
itemDB:flush()
_G._debug('STORAGE: refresh ' .. #t .. ' inventories in ' .. timer())
_G._debug('STORAGE: refresh ' .. #t .. ' inventories in ' .. Util.round(timer(), 2))
self.dirty = false
self.cache = cache

View File

@@ -76,7 +76,11 @@ local function run()
if not meta.isSneaking and meta.isElytraFlying then
if meta.pitch < 0 then -- looking up
if meta.isInWater then
display(meta)
os.sleep(0.5)
elseif meta.pitch < 0 then -- looking up
modules.launch(meta.yaw, meta.pitch, -meta.pitch / 22.5)
Sound.play('entity.bobber.throw', .6)
display(meta)