mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-23 12:30:56 -04:00
Merge branch 'master' of https://github.com/MightyPirates/OpenComputers into MC1.7
This commit is contained in:
commit
88cecdfc7e
@ -61,9 +61,9 @@ class Hologram extends Environment with SidedEnvironment {
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
override def canConnect(side: ForgeDirection) = side != ForgeDirection.UP
|
||||
override def canConnect(side: ForgeDirection) = side == ForgeDirection.DOWN
|
||||
|
||||
override def sidedNode(side: ForgeDirection) = node
|
||||
override def sidedNode(side: ForgeDirection) = if (side == ForgeDirection.DOWN) node else null
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
|
@ -34,6 +34,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