I've dug through the decompiled code and found the bug, Cole is correct.
Here is the code that was wrong, fixed:
ChunkCoordinates.java
public float getDistanceSquared(int par1, int par2, int par3) { long var4 = this.posX - par1; long var5 = this.posY - par2; long var6 = this.posZ - par3; return (float)(var4 * var4 + var5 * var5 + var6 * var6); }
I've dug through the decompiled code and found the bug, Cole is correct.
Here is the code that was wrong, fixed:
ChunkCoordinates.java