From 39d1196e4ccdae51d2a19feb9f732c7cca7f191c Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 13 Oct 2018 12:28:33 +0100 Subject: [PATCH] Leaves: fix performance issue introduced by block meta nuke --- src/pocketmine/block/Leaves.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/block/Leaves.php b/src/pocketmine/block/Leaves.php index 118d8e47a6..aa290ddadc 100644 --- a/src/pocketmine/block/Leaves.php +++ b/src/pocketmine/block/Leaves.php @@ -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);