Skip to content

Commit

Permalink
fixed offset using X for the Z coordinate
Browse files Browse the repository at this point in the history
what are tests?
  • Loading branch information
mircokroon committed May 19, 2019
1 parent 97059cc commit 3bae685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/game/data/Coordinate3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public Coordinate3D(int x, int y, int z) {
// set the offset and round it to chunks
public static void setOffset(int x, int z) {
offsetX = x >> 4 << 4;
offsetZ = x >> 4 << 4;
offsetZ = z >> 4 << 4;
}

public Coordinate3D offset() {
Expand Down

0 comments on commit 3bae685

Please sign in to comment.