mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Merge branch 'master' into mcpe-0.12
This commit is contained in:
@ -872,7 +872,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
if(count($this->blockCache) > 2048){
|
||||
$this->chunkCache = [];
|
||||
$this->blockCache = [];
|
||||
}
|
||||
|
||||
}
|
||||
@ -2340,7 +2340,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->server->getPluginManager()->callEvent(new SpawnChangeEvent($this, $previousSpawn));
|
||||
}
|
||||
|
||||
public function requestChunk($x, $z, Player $player, $order = LevelProvider::ORDER_ZXY){
|
||||
public function requestChunk($x, $z, Player $player){
|
||||
$index = Level::chunkHash($x, $z);
|
||||
if(!isset($this->chunkSendQueue[$index])){
|
||||
$this->chunkSendQueue[$index] = [];
|
||||
|
Reference in New Issue
Block a user