mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Steps work properly, spam protection fixed, and a bit of work on where the eye is looking when it hits an entity.
This commit is contained in:
1 parent
93a725e031
commit
f8b56784d5
8 files changed
+258
-36
No files matched your search
@@ -15,11 +15,7 @@ public class LengthCheck {
|
||||
{
|
||||
double bx = l1.getX();
|
||||
double px = l2.getX();
|
||||
double xdiff = bx-px;
|
||||
if(xdiff < 0)
|
||||
{
|
||||
xdiff = -xdiff;
|
||||
}
|
||||
double xdiff = Math.abs(bx-px);
|
||||
return xdiff;
|
||||
}
|
||||
|
||||
@@ -27,11 +23,7 @@ public class LengthCheck {
|
||||
{
|
||||
double bz = l1.getZ();
|
||||
double pz = l2.getZ();
|
||||
double zdiff = bz-pz;
|
||||
if(zdiff < 0)
|
||||
{
|
||||
zdiff = -zdiff;
|
||||
}
|
||||
double zdiff = Math.abs(bz-pz);
|
||||
return zdiff;
|
||||
}
|
||||
|
||||
@@ -39,11 +31,7 @@ public class LengthCheck {
|
||||
{
|
||||
double by = l1.getY();
|
||||
double py = l2.getY();
|
||||
double ydiff = by-py;
|
||||
if(ydiff < 0)
|
||||
{
|
||||
ydiff = -ydiff;
|
||||
}
|
||||
double ydiff = Math.abs(by-py);
|
||||
return ydiff;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user