Better Solution for extra energy injection. ( Fixes Crash )

This commit is contained in:
AlgorithmX2
2014-04-07 21:31:36 -05:00
parent 7a0674a75b
commit 6203b172f6
+9
View File
@@ -131,6 +131,15 @@ public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements i
Options.add( o );
}
if ( Options.isEmpty() )
{
for (PartP2PIC2Power o : outs)
Options.add( o );
}
if ( Options.isEmpty() )
return amount;
PartP2PIC2Power x = (PartP2PIC2Power) Platform.pickRandom( Options );
if ( x != null && x.OutputPacket <= 0.001 )
{