diff --git a/src/constants/GeneralConstants.php b/src/constants/GeneralConstants.php index cb64209c3..e9314ca2d 100644 --- a/src/constants/GeneralConstants.php +++ b/src/constants/GeneralConstants.php @@ -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 diff --git a/src/world/TileEntity.php b/src/world/Tile.php similarity index 97% rename from src/world/TileEntity.php rename to src/world/Tile.php index be9b82d12..7a374e58c 100644 --- a/src/world/TileEntity.php +++ b/src/world/Tile.php @@ -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){