how bout I move this to the right place

This commit is contained in:
Ellpeck 2016-12-27 11:56:17 +01:00
parent 5182fa8c4e
commit 7303b3b68c

View file

@ -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;
}