Merge pull request #998 from thatsIch/e-920-extended-reach

Fixes #920 Increased GUI close distance to Vanilla MC
This commit is contained in:
thatsIch 2015-03-11 16:40:32 +01:00
commit 8ec9bb8b3b

View file

@ -111,8 +111,10 @@ public abstract class AEBaseInvTile extends AEBaseTile implements ISidedInventor
@Override @Override
public boolean isUseableByPlayer(EntityPlayer p) public boolean isUseableByPlayer(EntityPlayer p)
{ {
final double squaredMCReach = 64.0D;
return this.worldObj.getTileEntity( this.xCoord, this.yCoord, this.zCoord ) == this && p.getDistanceSq( this.xCoord + 0.5D, return this.worldObj.getTileEntity( this.xCoord, this.yCoord, this.zCoord ) == this && p.getDistanceSq( this.xCoord + 0.5D,
this.yCoord + 0.5D, this.zCoord + 0.5D ) <= 32.0D; this.yCoord + 0.5D, this.zCoord + 0.5D ) <= squaredMCReach;
} }
@Override @Override