From 7303b3b68c6d3569fa800462e9a59f6b602f2709 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 27 Dec 2016 11:56:17 +0100 Subject: [PATCH] how bout I move this to the right place --- .../mod/tile/TileEntityPhantomEnergyface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPhantomEnergyface.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPhantomEnergyface.java index ca18763d0..3b3ffbe15 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPhantomEnergyface.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPhantomEnergyface.java @@ -34,7 +34,7 @@ public class TileEntityPhantomEnergyface extends TileEntityPhantomface implement public int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate){ if(this.isBoundThingInRange()){ TileEntity tile = this.worldObj.getTileEntity(this.boundPosition); - if(tile != null && !(tile instanceof TileEntityLaserRelayEnergy)){ + if(tile != null){ if(tile instanceof IEnergyReceiver){ return ((IEnergyReceiver)tile).receiveEnergy(from, maxReceive, simulate); } @@ -110,7 +110,7 @@ public class TileEntityPhantomEnergyface extends TileEntityPhantomface implement public boolean isBoundThingInRange(){ if(super.isBoundThingInRange()){ TileEntity tile = this.worldObj.getTileEntity(this.boundPosition); - if(tile != null){ + if(tile != null && !(tile instanceof TileEntityLaserRelayEnergy)){ if(tile instanceof IEnergyHandler){ return true; }