Skip to content

Commit bb75b84

Browse files
committed
Converted waypoint coords from ints to doubles
1 parent 4ee8061 commit bb75b84

File tree

1 file changed

+11
-11
lines changed
  • modapi-common/src/main/java/net/badlion/modapicommon/utility

1 file changed

+11
-11
lines changed

modapi-common/src/main/java/net/badlion/modapicommon/utility/Location.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
public class Location {
77

88
private final String world;
9-
private final int x;
10-
private final int y;
11-
private final int z;
9+
private final double x;
10+
private final double y;
11+
private final double z;
1212

13-
public Location(String world, int x, int y, int z) {
13+
public Location(String world, double x, double y, double z) {
1414
this.world = world;
1515
this.x = x;
1616
this.y = y;
@@ -21,19 +21,19 @@ public String getWorld() {
2121
return this.world;
2222
}
2323

24-
public int getX() {
25-
return this.x;
24+
public double getX() {
25+
return x;
2626
}
2727

28-
public int getY() {
29-
return this.y;
28+
public double getY() {
29+
return y;
3030
}
3131

32-
public int getZ() {
33-
return this.z;
32+
public double getZ() {
33+
return z;
3434
}
3535

36-
public static Location of(String world, int x, int y, int z) {
36+
public static Location of(String world, double x, double y, double z) {
3737
return new Location(world, x, y, z);
3838
}
3939
}

0 commit comments

Comments
 (0)