diff --git a/src/block/BlockIdentifier.php b/src/block/BlockIdentifier.php index 5ea45c90b..b69037ad0 100644 --- a/src/block/BlockIdentifier.php +++ b/src/block/BlockIdentifier.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\Tile; +use pocketmine\utils\Utils; class BlockIdentifier{ @@ -40,6 +41,10 @@ class BlockIdentifier{ $this->blockId = $blockId; $this->variant = $variant; $this->itemId = $itemId; + + if($tileClass !== null){ + Utils::testValidInstance($tileClass, Tile::class); + } $this->tileClass = $tileClass; }