From fab26fb92cba5c267d73f75eae841615013b1117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Thu, 17 Sep 2015 22:38:19 +0200 Subject: [PATCH] Fix typo in JavaDoc and newly introduced crash bug (few commits back). --- src/main/java/li/cil/oc/api/nanomachines/Behavior.java | 2 +- src/main/scala/li/cil/oc/common/tileentity/traits/Hub.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/li/cil/oc/api/nanomachines/Behavior.java b/src/main/java/li/cil/oc/api/nanomachines/Behavior.java index 8ed7ae29e..38299b538 100644 --- a/src/main/java/li/cil/oc/api/nanomachines/Behavior.java +++ b/src/main/java/li/cil/oc/api/nanomachines/Behavior.java @@ -4,7 +4,7 @@ package li.cil.oc.api.nanomachines; * Implemented by single behaviors. *

* 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 { /** diff --git a/src/main/scala/li/cil/oc/common/tileentity/traits/Hub.scala b/src/main/scala/li/cil/oc/common/tileentity/traits/Hub.scala index 29b9477a7..d17611648 100644 --- a/src/main/scala/li/cil/oc/common/tileentity/traits/Hub.scala +++ b/src/main/scala/li/cil/oc/common/tileentity/traits/Hub.scala @@ -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) } }