mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
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:
parent
db095f9705
commit
bde0ba1100
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user