The Corporea Index is now less stingy on how close you need to be to it in the Y axis.

This commit is contained in:
Vasco Lavos committed 2015-09-28 20:05:36 +01:00
1 parent f2246c1c47
commit e2447824a6
1 file changed
+1 -1
@@ -218,7 +218,7 @@ public class TileCorporeaIndex extends TileCorporeaBase implements ICorporeaRequ
}
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.worldObj.isRemote ? 0 : 1.6), player.posZ) < RADIUS;
return MathHelper.pointDistancePlane(index.xCoord + 0.5, index.zCoord + 0.5, player.posX, player.posZ) < RADIUS && Math.abs(index.yCoord + 0.5 - player.posY + (player.worldObj.isRemote ? 0 : 1.6)) < 5;
}
public static void addPattern(String pattern, IRegexStacker stacker) {