Fixing NPE from EnergyAcceptorWrapper.java not handling ticks that aren't related to a TileEntity.
This commit is contained in:
parent
5baf4605e0
commit
746ed3f5d7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue