mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Added and tested backwards compatibility for 1.13 and 1.14.
This commit is contained in:
1 parent
f77d45a78d
commit
6afe0049c5
11 files changed
+78
-45
No files matched your search
@@ -28,6 +28,8 @@ public class Distance {
|
||||
private final double XDiff;
|
||||
private final double YDiff;
|
||||
private final double ZDiff;
|
||||
|
||||
private final Location from;
|
||||
|
||||
public Distance(Location from, Location to) {
|
||||
l1Y = to.getY();
|
||||
@@ -36,6 +38,8 @@ public class Distance {
|
||||
XDiff = Math.abs(to.getX() - from.getX());
|
||||
ZDiff = Math.abs(to.getZ() - from.getZ());
|
||||
YDiff = Math.abs(l1Y - l2Y);
|
||||
|
||||
this.from = from;
|
||||
}
|
||||
|
||||
public double fromY() {
|
||||
@@ -57,4 +61,8 @@ public class Distance {
|
||||
public double getYDifference() {
|
||||
return YDiff;
|
||||
}
|
||||
|
||||
public Location getFrom() {
|
||||
return this.from;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user