mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
World: Use existing function to notify nearby blocks of an update (#5494)
This commit is contained in:
parent
172ce659b8
commit
e647e8c933
@ -1788,10 +1788,7 @@ class World implements ChunkManager{
|
|||||||
|
|
||||||
if($update){
|
if($update){
|
||||||
$this->updateAllLight($x, $y, $z);
|
$this->updateAllLight($x, $y, $z);
|
||||||
$this->tryAddToNeighbourUpdateQueue($pos);
|
$this->notifyNeighbourBlockUpdate($pos);
|
||||||
foreach($pos->sides() as $side){
|
|
||||||
$this->tryAddToNeighbourUpdateQueue($side);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->timings->setBlock->stopTiming();
|
$this->timings->setBlock->stopTiming();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user