mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Leaves: fix performance issue introduced by block meta nuke
This commit is contained in:
parent
f671da99a6
commit
39d1196e4c
@ -111,6 +111,7 @@ class Leaves extends Transparent{
|
|||||||
$ev = new LeavesDecayEvent($this);
|
$ev = new LeavesDecayEvent($this);
|
||||||
$ev->call();
|
$ev->call();
|
||||||
if($ev->isCancelled() or $this->findLog($this)){
|
if($ev->isCancelled() or $this->findLog($this)){
|
||||||
|
$this->checkDecay = false;
|
||||||
$this->getLevel()->setBlock($this, $this, false);
|
$this->getLevel()->setBlock($this, $this, false);
|
||||||
}else{
|
}else{
|
||||||
$this->getLevel()->useBreakOn($this);
|
$this->getLevel()->useBreakOn($this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user