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:
Jonathan Coates 2024-02-28 09:27:35 +00:00
parent 136fbd2589
commit e62f2630b5
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
4 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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