Increased packet loss allowance

This commit is contained in:
Shoghi Cervantes 2013-06-04 01:59:35 +02:00
parent 566cee2b0b
commit e01a3e6811
2 changed files with 10 additions and 1 deletions

View File

@ -35,7 +35,7 @@ define("VIEWER", 3);
//Players
define("PLAYER_RECOVERY_BUFFER", 2048);
define("PLAYER_MAX_PACKET_LOSS", 0.20);
define("PLAYER_MAX_PACKET_LOSS", 0.40);
//Block Updates

View File

@ -230,6 +230,15 @@ class Tile extends Position{
$this->server->handle("tile.update", $this);
return true;
}
public function getText(){
return array(
$this->data["Text1"],
$this->data["Text2"],
$this->data["Text3"],
$this->data["Text4"]
);
}
public function close(){
if($this->closed === false){