From 425f0c27c3142d0ea27836770b79aa7c1ffa8bc0 Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Tue, 14 Apr 2015 10:55:38 -0400 Subject: [PATCH] Prevent crash when creating EnergyAcceptorWrapper --- .../java/mekanism/common/base/EnergyAcceptorWrapper.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java b/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java index fce914731..aead2571a 100644 --- a/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java +++ b/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java @@ -18,6 +18,11 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor public static EnergyAcceptorWrapper get(TileEntity tileEntity) { + if(tileEntity.getWorldObj() == null) + { + return null; + } + EnergyAcceptorWrapper wrapper = null; if(tileEntity instanceof IStrictEnergyAcceptor)