mojira.dev

Atomotron

Assigned

No issues.

Reported

MC-19103 Command block ignores radius requirements when far from 0,0,0 Duplicate MC-14919 Location-based lag spikes in multiplayer Invalid

Comments

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);
    }