mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed crash on chunks that are used by an entity after generation
This commit is contained in:
@ -129,8 +129,11 @@ class GenerationRequestManager{
|
||||
/** @var FullChunk $class */
|
||||
$class = substr($packet, $offset, $len);
|
||||
$offset += $len;
|
||||
$chunk = $class::fromBinary(substr($packet, $offset));
|
||||
$this->receiveChunk($levelID, $chunk);
|
||||
$level = $this->server->getLevel($levelID);
|
||||
if($level instanceof Level){
|
||||
$chunk = $class::fromBinary(substr($packet, $offset), $level->getProvider());
|
||||
$this->receiveChunk($levelID, $chunk);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user