mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09: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;
|
$visited[$index] = true;
|
||||||
|
|
||||||
$block = $this->level->getBlock($pos);
|
$block = $this->level->getBlock($pos);
|
||||||
console($block);
|
|
||||||
if($block instanceof WoodBlock){ //type doesn't matter
|
if($block instanceof WoodBlock){ //type doesn't matter
|
||||||
console("true");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($block->getId() === $this->getId() && $distance <= 4){
|
if($block->getId() === $this->getId() && $distance <= 4){
|
||||||
foreach(array(2,3,4,5) as $side){
|
foreach(array(2,3,4,5) as $side){
|
||||||
if($this->findLog($pos->getSide($side), $visited, $distance + 1)){ //recursion i guess?
|
if($this->findLog($pos->getSide($side), $visited, $distance + 1)){ //recursion i guess?
|
||||||
console("true");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console("false");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue