Leaves: fix performance issue introduced by block meta nuke

This commit is contained in:
Dylan K. Taylor 2018-10-13 12:28:33 +01:00
parent f671da99a6
commit 39d1196e4c

View File

@ -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);