Fixing NPE from EnergyAcceptorWrapper.java not handling ticks that aren't related to a TileEntity.

This commit is contained in:
RAWRwins254 2015-04-23 01:46:04 -05:00
parent 5baf4605e0
commit 746ed3f5d7

View file

@ -18,7 +18,7 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor
public static EnergyAcceptorWrapper get(TileEntity tileEntity)
{
if(tileEntity.getWorldObj() == null)
if(tileEntity != null && tileEntity.getWorldObj() == null)
{
return null;
}