Explosion: Recalculate light on destroyed blocks

this has been a bug for a long long time. I think the reason it was never addressed is because of the performance impact associated with it. However, that performance impact is now gone thanks to light update batching.
This commit is contained in:
Dylan K. Taylor 2019-01-13 14:22:35 +00:00
parent 1dca9074d5
commit d2082c0383

View File

@ -230,6 +230,7 @@ class Explosion{
$t->close();
}
$this->level->updateAllLight($block);
$pos = new Vector3($block->x, $block->y, $block->z);