Update modem initialization to check for wireless

This commit is contained in:
CadenCoaster
2025-10-19 13:51:27 -07:00
committed by GitHub
parent 9cd255c938
commit b1c4a68490

View File

@@ -1,5 +1,5 @@
local pullEvent = os.pullEventRaw local pullEvent = os.pullEventRaw
local modem = peripheral.find("modem") local modem = peripheral.find("modem",function (s) return peripheral.wrap(s).isWireless() end)
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
_G.network = {} _G.network = {}