From 5b4d661543fe78aeb5defb64e9be51dcf39221ae Mon Sep 17 00:00:00 2001 From: Flow86 Date: Tue, 17 Sep 2013 08:49:06 +0200 Subject: [PATCH] Update Pipe.java fix NPE. (see RS485/LogisticsPipes-Dev#182) --- common/buildcraft/transport/Pipe.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/buildcraft/transport/Pipe.java b/common/buildcraft/transport/Pipe.java index e3d0f05e..6fd1043a 100644 --- a/common/buildcraft/transport/Pipe.java +++ b/common/buildcraft/transport/Pipe.java @@ -86,6 +86,10 @@ public abstract class Pipe implements IPipe, IDropContr Pipe otherPipe; if (tile instanceof TileGenericPipe) { otherPipe = ((TileGenericPipe) tile).pipe; + + if (!BlockGenericPipe.isFullyDefined(otherPipe)) + return false; + if (!PipeConnectionBans.canPipesConnect(getClass(), otherPipe.getClass())) return false; }