mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-06 00:22:58 +00:00
Update startup.lua
Removed code better implemented by @Wilma456
This commit is contained in:
@@ -225,14 +225,6 @@ if turtle then
|
|||||||
shell.setCompletionFunction( "rom/programs/turtle/unequip.lua", completeUnequip )
|
shell.setCompletionFunction( "rom/programs/turtle/unequip.lua", completeUnequip )
|
||||||
end
|
end
|
||||||
|
|
||||||
if commands then
|
|
||||||
local function completExec( shell, nIndex, sText )
|
|
||||||
if nIndex == 1 then
|
|
||||||
return completeMultipleChoice( sText, commands.list() )
|
|
||||||
end
|
|
||||||
end
|
|
||||||
shell.setCompletionFunction( "rom/programs/command/exec.lua", completExec )
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Run autorun files
|
-- Run autorun files
|
||||||
if fs.exists( "/rom/autorun" ) and fs.isDir( "/rom/autorun" ) then
|
if fs.exists( "/rom/autorun" ) and fs.isDir( "/rom/autorun" ) then
|
||||||
|
|||||||
Reference in New Issue
Block a user