From 3d1cf14e8ef829299e575a59f171198fb0236fec Mon Sep 17 00:00:00 2001 From: Robert S Date: Sun, 13 Apr 2014 23:17:43 -0400 Subject: [PATCH] Fixed NPE in generator --- .../resonantinduction/electrical/generator/TileMotor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java b/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java index d871380cb..2a81b33d2 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java +++ b/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java @@ -43,7 +43,8 @@ public class TileMotor extends TileElectrical implements IRotatable, INodeProvid public void initiate() { super.initiate(); - node.reconstruct(); + if (node != null) + node.reconstruct(); } @Override