World: clean up lighting update API

This commit is contained in:
Dylan K. Taylor
2019-10-23 21:52:39 +01:00
parent 3768f3008e
commit 9aab97578b
2 changed files with 17 additions and 28 deletions

View File

@ -228,7 +228,7 @@ class Explosion{
$t->onBlockDestroyed(); //needed to create drops for inventories
}
$this->world->setBlockAt($pos->x, $pos->y, $pos->z, $airBlock, false); //TODO: should updating really be disabled here?
$this->world->updateAllLight($pos);
$this->world->updateAllLight($pos->x, $pos->y, $pos->z);
}
foreach(Facing::ALL as $side){