From a181a58420f4d5e498ee4d5e168fc0809e178f70 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Wed, 27 Mar 2019 07:42:33 -0400 Subject: [PATCH] tweaks --- common/Events.lua | 2 ++ milo/MiloRemote.lua | 2 +- milo/apis/storage.lua | 2 +- neural/elytraFly.lua | 6 +++++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/Events.lua b/common/Events.lua index 48829f8..59fabaa 100644 --- a/common/Events.lua +++ b/common/Events.lua @@ -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) diff --git a/milo/MiloRemote.lua b/milo/MiloRemote.lua index 290f275..d98bf60 100644 --- a/milo/MiloRemote.lua +++ b/milo/MiloRemote.lua @@ -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 diff --git a/milo/apis/storage.lua b/milo/apis/storage.lua index fc8b43a..ffa3ad4 100644 --- a/milo/apis/storage.lua +++ b/milo/apis/storage.lua @@ -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 diff --git a/neural/elytraFly.lua b/neural/elytraFly.lua index f718247..6e12c4b 100644 --- a/neural/elytraFly.lua +++ b/neural/elytraFly.lua @@ -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)