diff --git a/data/computercraft/lua/rom/programs/chest_sorter.lua b/data/computercraft/lua/rom/programs/chest_sorter.lua index da88512..e3bf0c2 100644 --- a/data/computercraft/lua/rom/programs/chest_sorter.lua +++ b/data/computercraft/lua/rom/programs/chest_sorter.lua @@ -237,9 +237,10 @@ local function showTutorial() end -- 主程序 -local function main() +local function main(...) -- 改为可变参数函数 -- 检查是否需要显示教程 - if #({...}) > 0 and ({...})[1] == "tutorial" then + local args = {...} + if #args > 0 and args[1] == "tutorial" then showTutorial() return end diff --git a/installer.lua b/installer.lua index 502d91b..6a32f75 100644 --- a/installer.lua +++ b/installer.lua @@ -1,5 +1,5 @@ -- LeonOS installer -local INSTALLER_VERSION = "0.3.8 Beta 18" +local INSTALLER_VERSION = "0.3.8 Beta 19" local DEFAULT_ROM_DIR = "/leonos" print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")