Fixed Server description not being displayed

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-07 18:05:33 +01:00
parent aecfbbbdc1
commit d90e41c0d5

View File

@ -539,7 +539,9 @@ class PocketMinecraftServer{
$this->custom["times_".$CID] = 0;
}
$ln = 15;
$this->description .= " ";
if($this->description == ""){
$this->description .= " ";
}
$txt = substr($this->description, $this->custom["times_".$CID], $ln);
$txt .= substr($this->description, 0, $ln - strlen($txt));
$this->send(0x1c, array(