mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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){
|
if($chunk === null){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$chunk->setX($chunkX);
|
||||||
|
$chunk->setZ($chunkZ);
|
||||||
|
|
||||||
$chunkHash = Level::chunkHash($chunkX, $chunkZ);
|
$chunkHash = Level::chunkHash($chunkX, $chunkZ);
|
||||||
$oldChunk = $this->getChunk($chunkX, $chunkZ, false);
|
$oldChunk = $this->getChunk($chunkX, $chunkZ, false);
|
||||||
if($unload and $oldChunk !== null){
|
if($unload and $oldChunk !== null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user