diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 813d910a7..1a2d355a7 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -1516,7 +1516,7 @@ class Server{ $this->alwaysTickPlayers = (int) $this->getProperty("level-settings.always-tick-players", false); $this->baseTickRate = (int) $this->getProperty("level-settings.base-tick-rate", 1); - $this->doTitleTick = (bool) $this->getProperty("console.title-tick", true); + $this->doTitleTick = ((bool) $this->getProperty("console.title-tick", true)) && Terminal::hasFormattingCodes(); $this->scheduler = new ServerScheduler(); @@ -2511,7 +2511,7 @@ class Server{ } if(($this->tickCounter % 20) === 0){ - if($this->doTitleTick and Terminal::hasFormattingCodes()){ + if($this->doTitleTick){ $this->titleTick(); } $this->currentTPS = 20;