Added and tested backwards compatibility for 1.13 and 1.14.

This commit is contained in:
Rammelkast committed 2020-03-31 13:10:14 +02:00
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;
}
}