mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
#385 NPE with TE interaction.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user