tweaks
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user