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))
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user