replace ChunkPos with LongHashMap#get(X|Z) in WorldClient

This commit is contained in:
Sen 2025-05-20 12:19:18 +02:00
parent e6d16405c5
commit 3a5a29cf9e
2 changed files with 21 additions and 12 deletions

View file

@ -13,6 +13,14 @@ public class LongHashMap<V>
return (long)x & 4294967295L | ((long)z & 4294967295L) << 32;
}
public static int getX(long v) {
return (int)(v & 4294967295L);
}
public static int getZ(long v) {
return (int)(v >> 32);
}
public LongHashMap()
{
this.mask = this.hashArray.length - 1;