Fixes #920 Increased GUI close distance to Vanilla MC
This commit is contained in:
@@ -111,8 +111,10 @@ public abstract class AEBaseInvTile extends AEBaseTile implements ISidedInventor
|
||||
@Override
|
||||
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,
|
||||
this.yCoord + 0.5D, this.zCoord + 0.5D ) <= 32.0D;
|
||||
this.yCoord + 0.5D, this.zCoord + 0.5D ) <= squaredMCReach;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user