Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fixed #62
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Jan 15, 2013
1 parent d988b27 commit 17161d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/classes/PocketMinecraftServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ public function packetHandler($packet){
$this->custom["times_".$CID] = 0;
}
$ln = 15;
if(strlen($this->description) === 0){
$this->description = "";
}
$txt = substr($this->description, $this->custom["times_".$CID], $ln);
$txt .= substr($this->description, 0, $ln - strlen($txt));
$this->send(0x1c, array(
Expand Down

0 comments on commit 17161d7

Please sign in to comment.