mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 15:25:56 -04:00
Fix typo in JavaDoc and newly introduced crash bug (few commits back).
This commit is contained in:
parent
9e4a22bb15
commit
fab26fb92c
@ -4,7 +4,7 @@ package li.cil.oc.api.nanomachines;
|
||||
* Implemented by single behaviors.
|
||||
* <p/>
|
||||
* If you need a reference to the player this behavior applies to (which you'll
|
||||
* probably usually want to have), pass it along from {@link BehaviorProvider#createBehavior}.
|
||||
* probably usually want to have), pass it along from {@link BehaviorProvider#createBehaviors}.
|
||||
*/
|
||||
public interface Behavior {
|
||||
/**
|
||||
|
@ -92,7 +92,7 @@ trait Hub extends traits.Environment with SidedEnvironment {
|
||||
}
|
||||
|
||||
protected def relayPacket(sourceSide: Option[ForgeDirection], packet: Packet) {
|
||||
for (side <- ForgeDirection.VALID_DIRECTIONS if Option(side) != sourceSide) {
|
||||
for (side <- ForgeDirection.VALID_DIRECTIONS if Option(side) != sourceSide && sidedNode(side) != null) {
|
||||
sidedNode(side).sendToReachable("network.message", packet)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user