mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Level: Fixed generation/send race condition causing blocks to be missing on the client
this FINALLY fixes the remaining occurrences of half-trees.
This commit is contained in:
parent
69c343bb9b
commit
4249c00c3e
@ -2462,6 +2462,10 @@ class Level implements ChunkManager, Metadatable{
|
||||
unset($this->blockCache[$chunkHash]);
|
||||
unset($this->chunkCache[$chunkHash]);
|
||||
unset($this->changedBlocks[$chunkHash]);
|
||||
if(isset($this->chunkSendTasks[$chunkHash])){ //invalidate pending caches
|
||||
$this->chunkSendTasks[$chunkHash]->cancelRun();
|
||||
unset($this->chunkSendTasks[$chunkHash]);
|
||||
}
|
||||
$chunk->setChanged();
|
||||
|
||||
if(!$this->isChunkInUse($chunkX, $chunkZ)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user