mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fixed EnergyAcceptorWrapper crash
This commit is contained in:
1 parent
cf9c9d0d50
commit
6c8e932340
1 file changed
+1
-1
@@ -20,7 +20,7 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor
|
||||
|
||||
public static EnergyAcceptorWrapper get(TileEntity tileEntity, EnumFacing side)
|
||||
{
|
||||
if(tileEntity != null && tileEntity.getWorld() == null)
|
||||
if(tileEntity == null || tileEntity.getWorld() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user