Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix //merge
It will works
  • Loading branch information
Fadhilarsetya authored Jul 12, 2023
commit 4d13aa5b49acc54dd6af83a6504acb0a06289c60
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand All @@ -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());
}
}
}