Compare commits
2 Commits
f5dc17dbbf
...
f53d5decf8
| Author | SHA1 | Date | |
|---|---|---|---|
| f53d5decf8 | |||
| 9849750e4b |
@@ -1,2 +1,8 @@
|
||||
local databaseStorage = peripheral.find("drive") or error("No drive attached", 0)
|
||||
if (databaseStorage.isDiskPresent() == false or databaseStorage.getDiskLabel() ~= "Farming Data") then error("Missing or wrong drive", 0) end
|
||||
local databasePath = databaseStorage.getMountPath()
|
||||
|
||||
local databaseModem = peripheral.find("modem") or error("No modem attached", 0)
|
||||
local databaseStorage = peripheral.find("drive") or error("No modem attached", 0)
|
||||
local networkChannel = 420
|
||||
if (databaseModem.isOpen(networkChannel)) then databaseModem.close(networkChannel) end
|
||||
databaseModem.open(networkChannel)
|
||||
|
||||
Reference in New Issue
Block a user