mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
World: reduce blockhash padding for Y axis to accommodate new height range
This commit is contained in:
@ -329,7 +329,7 @@ class World implements ChunkManager{
|
||||
|
||||
private const MORTON3D_BIT_SIZE = 21;
|
||||
private const BLOCKHASH_Y_BITS = 9;
|
||||
private const BLOCKHASH_Y_PADDING = 128; //size (in blocks) of padding after both boundaries of the Y axis
|
||||
private const BLOCKHASH_Y_PADDING = 64; //size (in blocks) of padding after both boundaries of the Y axis
|
||||
private const BLOCKHASH_Y_OFFSET = self::BLOCKHASH_Y_PADDING - self::Y_MIN;
|
||||
private const BLOCKHASH_Y_MASK = (1 << self::BLOCKHASH_Y_BITS) - 1;
|
||||
private const BLOCKHASH_XZ_MASK = (1 << self::MORTON3D_BIT_SIZE) - 1;
|
||||
|
Reference in New Issue
Block a user