Merge pull request #998 from thatsIch/e-920-extended-reach
Fixes #920 Increased GUI close distance to Vanilla MC
This commit is contained in:
commit
8ec9bb8b3b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue