mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
World: reduce blockhash padding for Y axis to accommodate new height range
This commit is contained in:
parent
63b2e7cc4f
commit
42474c14aa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user