1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-07-16 17:02:52 +00:00
SquidDev 037cbabb32 Merge branch 'master' into mc-1.14.x
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.
2019-12-23 22:34:30 +00:00

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 )