9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 19:49:06 +00:00

Parallax fixes

This commit is contained in:
Daniel Mills
2021-07-24 09:42:19 -04:00
parent a4ba07de99
commit 0d5e3a080c
4 changed files with 43 additions and 47 deletions

View File

@@ -83,4 +83,8 @@ public class Position2 {
public Position2 add(int x, int z) {
return new Position2(this.x + x, this.z + z);
}
public Position2 blockToChunk() {
return new Position2(x >> 4, z >> 4);
}
}