mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Merge branch 'stable'
# Conflicts: # resources/vanilla # src/pocketmine/world/World.php
This commit is contained in:
commit
3eb1a56985
@ -757,11 +757,11 @@ class World implements ChunkManager{
|
||||
while($this->scheduledBlockUpdateQueue->count() > 0 and $this->scheduledBlockUpdateQueue->current()["priority"] <= $currentTick){
|
||||
/** @var Vector3 $vec */
|
||||
$vec = $this->scheduledBlockUpdateQueue->extract()["data"];
|
||||
unset($this->scheduledBlockUpdateQueueIndex[World::blockHash($vec->x, $vec->y, $vec->z)]);
|
||||
if(!$this->isInLoadedTerrain($vec)){
|
||||
continue;
|
||||
}
|
||||
$block = $this->getBlock($vec);
|
||||
unset($this->scheduledBlockUpdateQueueIndex[World::blockHash($block->x, $block->y, $block->z)]);
|
||||
$block->onScheduledUpdate();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user