Update Pipe.java

fix NPE.

(see RS485/LogisticsPipes-Dev#182)
This commit is contained in:
Flow86 2013-09-17 08:49:06 +02:00
parent cde67912f6
commit 5b4d661543

View file

@ -86,6 +86,10 @@ public abstract class Pipe<T extends PipeTransport> 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;
}