mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Fixed crash on chunks that are used by an entity after generation
This commit is contained in:
parent
58bded4988
commit
171de939cd
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user