mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
dumbherobrine forgot to remove debug stuff
This commit is contained in:
parent
3c0f12e696
commit
2ac51710cb
1 changed files with 0 additions and 4 deletions
|
|
@ -45,21 +45,17 @@ class LeavesBlock extends TransparentBlock{
|
|||
$visited[$index] = true;
|
||||
|
||||
$block = $this->level->getBlock($pos);
|
||||
console($block);
|
||||
if($block instanceof WoodBlock){ //type doesn't matter
|
||||
console("true");
|
||||
return true;
|
||||
}
|
||||
|
||||
if($block->getId() === $this->getId() && $distance <= 4){
|
||||
foreach(array(2,3,4,5) as $side){
|
||||
if($this->findLog($pos->getSide($side), $visited, $distance + 1)){ //recursion i guess?
|
||||
console("true");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
console("false");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue