mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
ChunkCache: we have no business autoloading chunks during sending
if the chunk isn't loaded, this is a bug and it should crash.
This commit is contained in:
parent
5096741b29
commit
716de4d9d6
@ -110,7 +110,7 @@ class ChunkCache implements ChunkListener{
|
|||||||
new ChunkRequestTask(
|
new ChunkRequestTask(
|
||||||
$chunkX,
|
$chunkX,
|
||||||
$chunkZ,
|
$chunkZ,
|
||||||
$this->world->getOrLoadChunk($chunkX, $chunkZ),
|
$this->world->getChunk($chunkX, $chunkZ),
|
||||||
$this->caches[$chunkHash],
|
$this->caches[$chunkHash],
|
||||||
$this->compressor,
|
$this->compressor,
|
||||||
function() use ($chunkX, $chunkZ) : void{
|
function() use ($chunkX, $chunkZ) : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user