mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Update LeavesBlock.php
This commit is contained in:
parent
e151687d6b
commit
159d49ebf3
1 changed files with 1 additions and 3 deletions
|
|
@ -52,9 +52,7 @@ class LeavesBlock extends TransparentBlock{
|
||||||
$this->meta &= 0x03;
|
$this->meta &= 0x03;
|
||||||
$visited = array();
|
$visited = array();
|
||||||
$check = 0;
|
$check = 0;
|
||||||
if($this->findLog($this, $visited, 0) === true){
|
if($this->findLog($this, $visited, 0) !== true){
|
||||||
//$this->level->setBlock($this, $this, false, false, true); why would you set a new block when you dont delete old one?
|
|
||||||
}else{
|
|
||||||
$this->level->setBlock($this, new AirBlock(), false, false, true);
|
$this->level->setBlock($this, new AirBlock(), false, false, true);
|
||||||
if(mt_rand(1,20) === 1){ //Saplings
|
if(mt_rand(1,20) === 1){ //Saplings
|
||||||
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem(SAPLING, $this->meta & 0x03, 1));
|
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem(SAPLING, $this->meta & 0x03, 1));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue