World: reduce blockhash padding for Y axis to accommodate new height range

This commit is contained in:
Dylan K. Taylor 2022-04-15 19:47:25 +01:00
parent 63b2e7cc4f
commit 42474c14aa
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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;