This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-15 15:49:03 +01:00
parent d988b27b16
commit 17161d7cd0

View File

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