mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Increased packet loss allowance
This commit is contained in:
parent
566cee2b0b
commit
e01a3e6811
2 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
Loading…
Add table
Add a link
Reference in a new issue