Fixed http://openeye.openmods.info/crashes/bbefcf763be5224e4667519cf6c95933
This commit is contained in:
@@ -41,7 +41,11 @@ public class MJ6 extends BaseModule implements IMJ6
|
|||||||
if ( te instanceof IPowerReceptor )
|
if ( te instanceof IPowerReceptor )
|
||||||
{
|
{
|
||||||
final IPowerReceptor recp = (IPowerReceptor) te;
|
final IPowerReceptor recp = (IPowerReceptor) te;
|
||||||
|
if ( recp == null )
|
||||||
|
return null;
|
||||||
final PowerReceiver ph = recp.getPowerReceiver( side );
|
final PowerReceiver ph = recp.getPowerReceiver( side );
|
||||||
|
if ( ph == null )
|
||||||
|
return null;
|
||||||
|
|
||||||
return new IBatteryObject() {
|
return new IBatteryObject() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user