Simplify toSectionRelativeCoordinate

This commit is contained in:
themode 2022-03-11 17:55:56 +01:00
parent d9e51beebb
commit 27b046b52c
1 changed files with 1 additions and 5 deletions

View File

@ -253,10 +253,6 @@ public final class ChunkUtils {
* @return section coordinate
*/
public static int toSectionRelativeCoordinate(int xyz) {
xyz %= 16;
if (xyz < 0) {
xyz += Chunk.CHUNK_SECTION_SIZE;
}
return xyz;
return xyz & 0xF;
}
}