Fixed http://openeye.openmods.info/crashes/bbefcf763be5224e4667519cf6c95933
This commit is contained in:
parent
f4706d6612
commit
f0ad27c5f3
1 changed files with 4 additions and 0 deletions
|
@ -41,7 +41,11 @@ public class MJ6 extends BaseModule implements IMJ6
|
|||
if ( te instanceof IPowerReceptor )
|
||||
{
|
||||
final IPowerReceptor recp = (IPowerReceptor) te;
|
||||
if ( recp == null )
|
||||
return null;
|
||||
final PowerReceiver ph = recp.getPowerReceiver( side );
|
||||
if ( ph == null )
|
||||
return null;
|
||||
|
||||
return new IBatteryObject() {
|
||||
|
||||
|
|
Loading…
Reference in a new issue