diff --git a/data/computercraft/lua/rom/programs/turtle_miner.lua b/data/computercraft/lua/rom/programs/turtle_miner.lua index fbd5215..8b53ddd 100644 --- a/data/computercraft/lua/rom/programs/turtle_miner.lua +++ b/data/computercraft/lua/rom/programs/turtle_miner.lua @@ -271,18 +271,18 @@ local function startMining() print("Mining...") turtle.dig() -- 检查是否有掉落物需要捡起 - _G.os.sleep(0.5) + -- os.sleep(0.5) end -- 检查上方是否有方块可以挖掘 if turtle.detectUp() then print("Mining above...") turtle.digUp() - _G.os.sleep(0.5) + -- os.sleep(0.5) end -- 短暂延迟避免CPU占用过高 - _G.os.sleep(0.1) + -- os.sleep(0.1) end print(colors.yellow .. "Auto mining stopped." .. colors.white) diff --git a/installer.lua b/installer.lua index efeef1f..41996c4 100644 --- a/installer.lua +++ b/installer.lua @@ -1,5 +1,5 @@ -- LeonOS installer -local INSTALLER_VERSION = "0.3.8 Beta 10" +local INSTALLER_VERSION = "0.3.8 Beta 11" local DEFAULT_ROM_DIR = "/leonos" print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")