tweaks
This commit is contained in:
@@ -75,12 +75,14 @@ function page:eventHandler(event)
|
|||||||
elseif event.type == 'quit' then
|
elseif event.type == 'quit' then
|
||||||
UI:exitPullEvents()
|
UI:exitPullEvents()
|
||||||
|
|
||||||
|
--[[
|
||||||
elseif event.type == 'focus_change' then
|
elseif event.type == 'focus_change' then
|
||||||
if event.focused == self.grid then
|
if event.focused == self.grid then
|
||||||
if not self.paused then
|
if not self.paused then
|
||||||
self:emit({ type = 'toggle' })
|
self:emit({ type = 'toggle' })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
|
|
||||||
else
|
else
|
||||||
return UI.Page.eventHandler(self, event)
|
return UI.Page.eventHandler(self, event)
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ function page:eventHandler(event)
|
|||||||
self:transfer(item, count, 'requesting ' .. count .. ' ...')
|
self:transfer(item, count, 'requesting ' .. count .. ' ...')
|
||||||
else
|
else
|
||||||
Sound.play('entity.villager.no')
|
Sound.play('entity.villager.no')
|
||||||
context:notify('nope ...')
|
context:notifyError('nope ...')
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif event.type == 'plugin' then
|
elseif event.type == 'plugin' then
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ function Storage:listItems(throttle)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
itemDB:flush()
|
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.dirty = false
|
||||||
self.cache = cache
|
self.cache = cache
|
||||||
|
|||||||
@@ -76,7 +76,11 @@ local function run()
|
|||||||
|
|
||||||
if not meta.isSneaking and meta.isElytraFlying then
|
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)
|
modules.launch(meta.yaw, meta.pitch, -meta.pitch / 22.5)
|
||||||
Sound.play('entity.bobber.throw', .6)
|
Sound.play('entity.bobber.throw', .6)
|
||||||
display(meta)
|
display(meta)
|
||||||
|
|||||||
Reference in New Issue
Block a user