mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
make Player#unloadChunk() method protected
This commit is contained in:
parent
7f0a961526
commit
cccaade00c
@ -830,7 +830,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
return false;
|
||||
}
|
||||
|
||||
private function unloadChunk(int $x, int $z, Level $level = null){
|
||||
protected function unloadChunk(int $x, int $z, Level $level = null){
|
||||
$level = $level ?? $this->level;
|
||||
$index = Level::chunkHash($x, $z);
|
||||
if(isset($this->usedChunks[$index])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user