Skip to content

Commit

Permalink
Fixes #920 Increased GUI close distance to Vanilla MC
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsIch committed Mar 11, 2015
1 parent 63a6037 commit c9f0b4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/appeng/tile/AEBaseInvTile.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public int getInventoryStackLimit()
@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
Expand Down

0 comments on commit c9f0b4e

Please sign in to comment.