Containers can now be accessed anywhere

This commit is contained in:
Aidan Brady 2013-06-29 23:19:46 -04:00
parent 52ceee1259
commit 29749ca510

View file

@ -147,7 +147,7 @@ public abstract class TileEntityContainerBlock extends TileEntityBasicBlock impl
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return worldObj.getBlockTileEntity(xCoord, yCoord, zCoord) != this ? false : entityplayer.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;
return true;
}
@Override