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.
This commit is contained in:
Dylan K. Taylor 2020-08-16 00:09:17 +01:00
parent 9a0f723dff
commit b53f88027e

View File

@ -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++){