Fixed conversion from world to chunk coords.
Added test that catches this case.
This commit is contained in:
@@ -38,7 +38,7 @@ public class Utilities {
|
||||
xRes = x / CHUNK_SIZE;
|
||||
}
|
||||
int yRes = 0;
|
||||
if (x < 0) {
|
||||
if (y < 0) {
|
||||
yRes = (int) Math.floor((float) y / CHUNK_SIZE);
|
||||
} else {
|
||||
yRes = y / CHUNK_SIZE;
|
||||
|
Reference in New Issue
Block a user