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

View File

@ -876,7 +876,7 @@ public class UtilEnt
if (!(ent instanceof Creature)) if (!(ent instanceof Creature))
return; return;
if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.1) if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.01)
return; return;
EntityCreature ec = ((CraftCreature)ent).getHandle(); EntityCreature ec = ((CraftCreature)ent).getHandle();
@ -906,7 +906,7 @@ public class UtilEnt
if (!(ent instanceof Creature)) if (!(ent instanceof Creature))
return false; return false;
if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.1) if (UtilMath.offsetSquared(ent.getLocation(), target) < 0.01)
return false; return false;
if (UtilMath.offsetSquared(ent.getLocation(), target) < 4) if (UtilMath.offsetSquared(ent.getLocation(), target) < 4)