mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 13:29:40 +00:00
Prevent crash when creating EnergyAcceptorWrapper
This commit is contained in:
1 parent
33f19cf895
commit
425f0c27c3
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user