Fix variables not using their squared versions
This commit is contained in:
parent
06c18a0fa3
commit
20338c5a63
@ -876,7 +876,7 @@ public class UtilEnt
|
||||
if (!(ent instanceof Creature))
|
||||
return;
|
||||
|
||||
if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.1)
|
||||
if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.01)
|
||||
return;
|
||||
|
||||
EntityCreature ec = ((CraftCreature)ent).getHandle();
|
||||
@ -906,7 +906,7 @@ public class UtilEnt
|
||||
if (!(ent instanceof Creature))
|
||||
return false;
|
||||
|
||||
if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.1)
|
||||
if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.01)
|
||||
return false;
|
||||
|
||||
if (UtilMath.offsetSquared(ent.getLocation(), target) < 4)
|
||||
|
Loading…
Reference in New Issue
Block a user