diff --git a/src/czechpmdevs/buildertools/blockstorage/identifiers/SingleBlockIdentifier.php b/src/czechpmdevs/buildertools/blockstorage/identifiers/SingleBlockIdentifier.php index fbbfa6e..c2df88d 100644 --- a/src/czechpmdevs/buildertools/blockstorage/identifiers/SingleBlockIdentifier.php +++ b/src/czechpmdevs/buildertools/blockstorage/identifiers/SingleBlockIdentifier.php @@ -20,7 +20,7 @@ namespace czechpmdevs\buildertools\blockstorage\identifiers; -use pocketmine\block\BlockTypeIds; +use pocketmine\block\VanillaBlocks; class SingleBlockIdentifier implements BlockIdentifierList { public function __construct(protected int $fullStateId) {} @@ -34,6 +34,6 @@ public function containsBlock(int $fullStateId): bool { } public static function airIdentifier(): SingleBlockIdentifier { - return new SingleBlockIdentifier(BlockTypeIds::AIR); + return new SingleBlockIdentifier(VanillaBlocks::AIR()->getStateId()); } -} \ No newline at end of file +}