mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-24 18:18:41 +01:00
Simplify toSectionRelativeCoordinate
This commit is contained in:
parent
d9e51beebb
commit
27b046b52c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user