mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +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 */
|
/** @var FullChunk $class */
|
||||||
$class = substr($packet, $offset, $len);
|
$class = substr($packet, $offset, $len);
|
||||||
$offset += $len;
|
$offset += $len;
|
||||||
$chunk = $class::fromBinary(substr($packet, $offset));
|
$level = $this->server->getLevel($levelID);
|
||||||
$this->receiveChunk($levelID, $chunk);
|
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