mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-16 17:02:52 +00:00

Unfortunately we can't apply the config changes due to backwards compatibility. This'll be something we may need to PR into Forge. CraftTweaker support still needs to be added.
19 lines
311 B
Lua
19 lines
311 B
Lua
|
|
-- Get arguments
|
|
local tArgs = { ... }
|
|
if #tArgs == 0 then
|
|
print( "Usage: eject <drive>" )
|
|
return
|
|
end
|
|
|
|
local sDrive = tArgs[1]
|
|
|
|
-- Check the disk exists
|
|
local bPresent = disk.isPresent( sDrive )
|
|
if not bPresent then
|
|
print( "Nothing in " .. sDrive .. " drive" )
|
|
return
|
|
end
|
|
|
|
disk.eject( sDrive )
|