From b53f88027ec909bc10bafcd03f8aa5a3ff036295 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 16 Aug 2020 00:09:17 +0100 Subject: [PATCH] Explosion: fixed blocks getting updated too early this bug became painfully obvious when testing bamboo. Detonating TNT near tall bamboo canes would result in bamboo canes not deleting themselves in some circumstances, because the non-destroyed parts of the cane would be updated before their supporting block was deleted, and subsequently would not be re-updated afterwards. I think this bug should also reproduce with cacti, but I have not tested. --- src/pocketmine/level/Explosion.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pocketmine/level/Explosion.php b/src/pocketmine/level/Explosion.php index e04fabed1..07c82399e 100644 --- a/src/pocketmine/level/Explosion.php +++ b/src/pocketmine/level/Explosion.php @@ -232,7 +232,9 @@ class Explosion{ $t->close(); } + } + foreach($this->affectedBlocks as $block){ $pos = new Vector3($block->x, $block->y, $block->z); for($side = 0; $side <= 5; $side++){