From c9f0b4e4898f962387b7b17b6582fd5715b95c2f Mon Sep 17 00:00:00 2001 From: thatsIch Date: Tue, 10 Mar 2015 08:38:17 +0100 Subject: [PATCH] Fixes #920 Increased GUI close distance to Vanilla MC --- src/main/java/appeng/tile/AEBaseInvTile.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/appeng/tile/AEBaseInvTile.java b/src/main/java/appeng/tile/AEBaseInvTile.java index 4647d729..26925d2e 100644 --- a/src/main/java/appeng/tile/AEBaseInvTile.java +++ b/src/main/java/appeng/tile/AEBaseInvTile.java @@ -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