mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +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->call();
|
||||
if($ev->isCancelled() or $this->findLog($this)){
|
||||
$this->checkDecay = false;
|
||||
$this->getLevel()->setBlock($this, $this, false);
|
||||
}else{
|
||||
$this->getLevel()->useBreakOn($this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user