edit: fix sticky control + autorun in shell mode

This commit is contained in:
kepler155c@gmail.com
2019-03-27 15:22:13 -04:00
parent a181a58420
commit 6f3606de20
3 changed files with 6 additions and 2 deletions

View File

@@ -631,6 +631,7 @@ local __actions = {
end, end,
run = function() run = function()
input:reset()
local sTempPath = "/.temp" local sTempPath = "/.temp"
local ok = save(sTempPath) local ok = save(sTempPath)
if ok then if ok then

View File

@@ -9,6 +9,6 @@ end
fs.delete('packages/milo/apis/milo.lua') fs.delete('packages/milo/apis/milo.lua')
if peripheral.find('workbench') then if peripheral.find('workbench') and shell.openForegroundTab then
shell.openForegroundTab('MiloLocal') shell.openForegroundTab('MiloLocal')
end end

View File

@@ -74,7 +74,10 @@ local function run()
while true do while true do
local meta = modules.getMetaOwner() local meta = modules.getMetaOwner()
if not meta.isSneaking and meta.isElytraFlying then if meta.isOnLadder then
os.sleep(0.5)
elseif not meta.isSneaking and meta.isElytraFlying then
if meta.isInWater then if meta.isInWater then
display(meta) display(meta)