Checks if tile entity has changed or if player is too far away.
This commit is contained in:
Virtuoel 2015-05-25 14:18:57 -04:00
parent a317d47b3b
commit 75702ef5ef
1 changed files with 1 additions and 1 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