From d90e41c0d5d9e3fb1ecf208f96ae65dc724e379d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 7 Mar 2013 18:05:33 +0100 Subject: [PATCH] Fixed Server description not being displayed --- src/PocketMinecraftServer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PocketMinecraftServer.php b/src/PocketMinecraftServer.php index 6568b62d..70da1c8c 100644 --- a/src/PocketMinecraftServer.php +++ b/src/PocketMinecraftServer.php @@ -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(