readd chunk pos long optimization

This commit is contained in:
Lulu13022002
2024-12-15 16:11:42 +01:00
parent 0895318159
commit 1d6c40afac
3 changed files with 12 additions and 4 deletions

View File

@@ -28,3 +28,12 @@
}
public static ChunkPos minFromRegion(int chunkX, int chunkZ) {
@@ -74,7 +_,7 @@
}
public long toLong() {
- return asLong(this.x, this.z);
+ return this.longKey; // Paper
}
public static long asLong(int x, int z) {