Level: Set chunk coordinates in setChunk()

The level provider used to do this in LevelProvider->setChunk(), but it does not anymore.
This commit is contained in:
Dylan K. Taylor 2018-01-01 13:13:47 +00:00
parent db095f9705
commit bde0ba1100

View File

@ -2406,6 +2406,10 @@ class Level implements ChunkManager, Metadatable{
if($chunk === null){
return;
}
$chunk->setX($chunkX);
$chunk->setZ($chunkZ);
$chunkHash = Level::chunkHash($chunkX, $chunkZ);
$oldChunk = $this->getChunk($chunkX, $chunkZ, false);
if($unload and $oldChunk !== null){