From 5840adad8b7fe5bc9552341ad323be794fccb787 Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Mon, 16 Mar 2015 16:53:34 +0000 Subject: [PATCH] Fixed the Corporea Index being finnicky with Y distance. --- .../botania/common/block/tile/corporea/TileCorporeaIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaIndex.java b/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaIndex.java index 978bf0cb5..9a543d29a 100644 --- a/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaIndex.java +++ b/src/main/java/vazkii/botania/common/block/tile/corporea/TileCorporeaIndex.java @@ -196,7 +196,7 @@ public class TileCorporeaIndex extends TileCorporeaBase { } public static boolean isInRangeOfIndex(EntityPlayer player, TileCorporeaIndex index) { - return MathHelper.pointDistanceSpace(index.xCoord + 0.5, index.yCoord + 0.5, index.zCoord + 0.5, player.posX, player.posY, player.posZ) < RADIUS; + return MathHelper.pointDistanceSpace(index.xCoord + 0.5, index.yCoord + 0.5, index.zCoord + 0.5, player.posX, player.posY + (player.worldObj.isRemote ? 0 : 1.6), player.posZ) < RADIUS; } public static void addPattern(String pattern, IRegexStacker stacker) {