mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-10 15:59:39 +00:00
SubChunk: added moveToChunk()
This commit is contained in:
parent
8bab9cc108
commit
390bc631c8
@ -86,6 +86,11 @@ class SubChunkExplorer{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function moveToChunk(int $chunkX, int $chunkY, int $chunkZ, bool $create) : bool{
|
||||
//this is a cold path, so we don't care much if it's a bit slower (extra fcall overhead)
|
||||
return $this->moveTo($chunkX << 4, $chunkY << 4, $chunkZ << 4, $create);
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpstan-param \Closure() : void $callback
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user