mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Merge branch 'master' into mcpe-0.12
This commit is contained in:
commit
bdf5c46793
@ -872,7 +872,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(count($this->blockCache) > 2048){
|
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));
|
$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);
|
$index = Level::chunkHash($x, $z);
|
||||||
if(!isset($this->chunkSendQueue[$index])){
|
if(!isset($this->chunkSendQueue[$index])){
|
||||||
$this->chunkSendQueue[$index] = [];
|
$this->chunkSendQueue[$index] = [];
|
||||||
|
@ -33,7 +33,7 @@ class ServerKiller extends Thread{
|
|||||||
|
|
||||||
public function run(){
|
public function run(){
|
||||||
sleep($this->time);
|
sleep($this->time);
|
||||||
echo "\nTook to long to stop, server was killed forcefully!\n";
|
echo "\nTook too long to stop, server was killed forcefully!\n";
|
||||||
@\pocketmine\kill(getmypid());
|
@\pocketmine\kill(getmypid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user