mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Merge commit '5c8a625d88e511a6ebad765714b75f1a86dfd37f'
This commit is contained in:
@ -67,6 +67,9 @@ class Leaves extends Transparent{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param true[] $visited reference parameter
|
||||
*/
|
||||
protected function findLog(Vector3 $pos, array &$visited = [], int $distance = 0) : bool{
|
||||
$index = World::blockHash($pos->x, $pos->y, $pos->z);
|
||||
if(isset($visited[$index])){
|
||||
|
Reference in New Issue
Block a user