Leaves: fix decay performance issue

this code was written with references in mind, but it looks like someone forgot the reference.
This commit is contained in:
Dylan K. Taylor 2020-01-20 11:52:11 +00:00
parent 73257ffde7
commit cfd975009e

View File

@ -69,7 +69,7 @@ class Leaves extends Transparent{
}
protected function findLog(Block $pos, array $visited, int $distance, ?int $fromSide = null) : bool{
protected function findLog(Block $pos, array &$visited, int $distance, ?int $fromSide = null) : bool{
$index = $pos->x . "." . $pos->y . "." . $pos->z;
if(isset($visited[$index])){
return false;