#385 NPE with TE interaction.

This commit is contained in:
CrazyPants committed 2013-12-27 15:25:12 +08:00
1 parent cc5817815f
commit 632703eeb3
1 file changed
+1 -1
@@ -90,7 +90,7 @@ public class PowerInterface {
public float getPowerRequest(ForgeDirection dir) {
if(rfPower != null) {
if(rfPower.canInterface(dir)) {
if(dir != null && rfPower.canInterface(dir)) {
return rfPower.receiveEnergy(dir, 99999999, true) / 10f;
}
return 0;