mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
wireless router now also injects received wireless messages into adjacent cc computers
This commit is contained in:
parent
01ff318383
commit
1d598367bb
@ -33,6 +33,10 @@ class WirelessRouter extends Router with WirelessNetwork.Endpoint {
|
||||
if (queue.size < 20) {
|
||||
queue += ForgeDirection.UNKNOWN -> packet.hop()
|
||||
}
|
||||
packet.data.headOption match {
|
||||
case Some(answerPort: java.lang.Double) => queueMessage(packet.port, answerPort.toInt, packet.data.drop(1).toSeq)
|
||||
case _ => queueMessage(packet.port, -1, packet.data.toSeq)
|
||||
}
|
||||
}
|
||||
|
||||
override protected def relayPacket(sourceSide: ForgeDirection, packet: Packet) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user