make Player#unloadChunk() method protected

This commit is contained in:
Takuya Sawada 2017-10-16 20:25:07 +09:00 committed by Dylan K. Taylor
parent 7f0a961526
commit cccaade00c

View File

@ -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])){