Fixed the Corporea Index working between dimensions. Closes #1534

This commit is contained in:
Vasco Lavos committed 2015-11-11 21:00:07 +00:00
1 parent cffb552eac
commit f6b5838f6e
1 file changed
+1 -1
@@ -216,7 +216,7 @@ public class TileCorporeaIndex extends TileCorporeaBase implements ICorporeaRequ
}
public static boolean isInRangeOfIndex(EntityPlayer player, TileCorporeaIndex index) {
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;
return player.worldObj.provider.dimensionId == index.worldObj.provider.dimensionId && 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) {