Fix variables not using their squared versions

This commit is contained in:
Sam 2018-07-13 17:42:51 +01:00 committed by Alexander Meech
parent 06c18a0fa3
commit 20338c5a63
1 changed files with 2 additions and 2 deletions

View File

@ -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)