Fix typo in JavaDoc and newly introduced crash bug (few commits back).

This commit is contained in:
Florian Nücke 2015-09-17 22:38:19 +02:00
parent 9e4a22bb15
commit fab26fb92c
2 changed files with 2 additions and 2 deletions

View File

@ -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 {
/**

View File

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