mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-27 01:08:34 +01:00
how bout I move this to the right place
This commit is contained in:
parent
5182fa8c4e
commit
7303b3b68c
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ public class TileEntityPhantomEnergyface extends TileEntityPhantomface implement
|
||||||
public int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate){
|
public int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate){
|
||||||
if(this.isBoundThingInRange()){
|
if(this.isBoundThingInRange()){
|
||||||
TileEntity tile = this.worldObj.getTileEntity(this.boundPosition);
|
TileEntity tile = this.worldObj.getTileEntity(this.boundPosition);
|
||||||
if(tile != null && !(tile instanceof TileEntityLaserRelayEnergy)){
|
if(tile != null){
|
||||||
if(tile instanceof IEnergyReceiver){
|
if(tile instanceof IEnergyReceiver){
|
||||||
return ((IEnergyReceiver)tile).receiveEnergy(from, maxReceive, simulate);
|
return ((IEnergyReceiver)tile).receiveEnergy(from, maxReceive, simulate);
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ public class TileEntityPhantomEnergyface extends TileEntityPhantomface implement
|
||||||
public boolean isBoundThingInRange(){
|
public boolean isBoundThingInRange(){
|
||||||
if(super.isBoundThingInRange()){
|
if(super.isBoundThingInRange()){
|
||||||
TileEntity tile = this.worldObj.getTileEntity(this.boundPosition);
|
TileEntity tile = this.worldObj.getTileEntity(this.boundPosition);
|
||||||
if(tile != null){
|
if(tile != null && !(tile instanceof TileEntityLaserRelayEnergy)){
|
||||||
if(tile instanceof IEnergyHandler){
|
if(tile instanceof IEnergyHandler){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue