Removes calls to isWireless
Wired modems don't exist on 1.4.7, so there's no method to distinguish between wireless and wired modems. Fixes #1733
This commit is contained in:
parent
136fbd2589
commit
e62f2630b5
|
@ -1,6 +1,6 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
||||
networkTimeout=10000
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -109,7 +109,7 @@ function locate(_nTimeout, _bDebug)
|
|||
-- Find a modem
|
||||
local sModemSide = nil
|
||||
for _, sSide in ipairs(rs.getSides()) do
|
||||
if peripheral.getType(sSide) == "modem" and peripheral.call(sSide, "isWireless") then
|
||||
if peripheral.getType(sSide) == "modem" then
|
||||
sModemSide = sSide
|
||||
break
|
||||
end
|
||||
|
|
|
@ -6,7 +6,6 @@ isOpen( channel )
|
|||
close( channel )
|
||||
closeAll()
|
||||
transmit( channel, replyChannel, message )
|
||||
isWireless()
|
||||
|
||||
Events fired by Modems:
|
||||
"modem_message" when a message is received on an open channel. Arguments are name, channel, replyChannel, message, distance
|
||||
|
|
|
@ -33,7 +33,7 @@ elseif sCommand == "host" then
|
|||
-- Find a modem
|
||||
local sModemSide = nil
|
||||
for _, sSide in ipairs(rs.getSides()) do
|
||||
if peripheral.getType(sSide) == "modem" and peripheral.call(sSide, "isWireless") then
|
||||
if peripheral.getType(sSide) == "modem" then
|
||||
sModemSide = sSide
|
||||
break
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue