storageGen.lua broke some time ago, since Milo stores non-used nodes in the config with an "ignore" type, so if Milo was ever launched before storageGen.lua, then storageGen.lua wouldn't work. Also, storageGen.lua used to be stored in packages/milo/apps but it seems some shell or package changes have made that no longer in the shell path, so I moved storageGen.lua out of packages/milo/apps.
14 lines
404 B
Lua
14 lines
404 B
Lua
local fs = _G.fs
|
|
local peripheral = _G.peripheral
|
|
local shell = _ENV.shell
|
|
|
|
fs.delete('packages/milo/Milo.lua')
|
|
fs.delete('packages/milo/plugins/listing.lua')
|
|
fs.delete('packages/milo/apis/milo.lua')
|
|
fs.delete('packages/milo/plugins/manipulator.lua')
|
|
fs.delete('packages/milo/apps')
|
|
|
|
if peripheral.find('workbench') and shell.openForegroundTab then
|
|
shell.openForegroundTab('MiloLocal')
|
|
end
|