mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
16 lines
292 B
PHP
16 lines
292 B
PHP
<?php
|
|
|
|
|
|
class MCBlockedProvider implements IBlockedProvider
|
|
{
|
|
public function isBlocked(PathTile $tile)
|
|
{
|
|
if($tile instanceof PathTileXYZ){
|
|
$b = $tile->level->getBlockWithoutVector($tile->x, $tile->y, $tile->z);
|
|
return $b instanceof Block && $b->isSolid;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|