mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
World: remove the fulfilled promise from the population request map
fixes crash when unregistering chunk loaders
This commit is contained in:
parent
bd60e41268
commit
74031d2fbe
@ -2870,6 +2870,7 @@ class World implements ChunkManager{
|
||||
|
||||
//chunk is already populated; return a pre-resolved promise that will directly fire callbacks assigned
|
||||
$resolver ??= new PromiseResolver();
|
||||
unset($this->chunkPopulationRequestMap[$index]);
|
||||
$resolver->resolve($chunk);
|
||||
return $resolver->getPromise();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user