diff --git a/src/main/java/appeng/tile/AEBaseInvTile.java b/src/main/java/appeng/tile/AEBaseInvTile.java index 4647d729f95..26925d2ed35 100644 --- a/src/main/java/appeng/tile/AEBaseInvTile.java +++ b/src/main/java/appeng/tile/AEBaseInvTile.java @@ -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