Merge pull request #894 from Virtuoel/Virtuoel-patch-1

Fix for dupe bug #885
This commit is contained in:
Pahimar 2015-05-26 13:04:22 -04:00
commit a13833c18b
7 changed files with 8 additions and 8 deletions

View File

@ -146,7 +146,7 @@ public class TileEntityAlchemicalChest extends TileEntityEE implements IInventor
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityplayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override

View File

@ -167,9 +167,9 @@ public class TileEntityAludel extends TileEntityEE implements ISidedInventory
}
@Override
public boolean isUseableByPlayer(EntityPlayer var1)
public boolean isUseableByPlayer(EntityPlayer entityPlayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityPlayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override

View File

@ -101,7 +101,7 @@ public class TileEntityAugmentationTable extends TileEntityEE implements IInvent
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityplayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override

View File

@ -169,7 +169,7 @@ public class TileEntityCalcinator extends TileEntityEE implements ISidedInventor
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityplayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override

View File

@ -143,7 +143,7 @@ public class TileEntityGlassBell extends TileEntityEE implements IInventory
@Override
public boolean isUseableByPlayer(EntityPlayer entityPlayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityPlayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override

View File

@ -109,7 +109,7 @@ public class TileEntityResearchStation extends TileEntityEE implements IInventor
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityplayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override

View File

@ -296,7 +296,7 @@ public class TileEntityTransmutationTablet extends TileEntityEE implements ISide
@Override
public boolean isUseableByPlayer(EntityPlayer entityPlayer)
{
return true;
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityPlayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
}
@Override