Fixed empty block handling after blockstate ID XOR change

This commit is contained in:
Dylan K. Taylor
2023-05-29 18:26:23 +01:00
parent 5a9cdef40c
commit 8744032ab6
8 changed files with 25 additions and 21 deletions

View File

@ -58,6 +58,11 @@ class Block{
public const INTERNAL_STATE_DATA_BITS = 8;
public const INTERNAL_STATE_DATA_MASK = ~(~0 << self::INTERNAL_STATE_DATA_BITS);
/**
* @internal
*/
public const EMPTY_STATE_ID = (BlockTypeIds::AIR << self::INTERNAL_STATE_DATA_BITS) | (BlockTypeIds::AIR & self::INTERNAL_STATE_DATA_MASK);
protected BlockIdentifier $idInfo;
protected string $fallbackName;
protected BlockTypeInfo $typeInfo;