mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Server: move formattingCodes check to initial assignment of doTitleTick
This commit is contained in:
parent
2731fc3d0f
commit
88c56bcdc8
@ -1516,7 +1516,7 @@ class Server{
|
|||||||
$this->alwaysTickPlayers = (int) $this->getProperty("level-settings.always-tick-players", false);
|
$this->alwaysTickPlayers = (int) $this->getProperty("level-settings.always-tick-players", false);
|
||||||
$this->baseTickRate = (int) $this->getProperty("level-settings.base-tick-rate", 1);
|
$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();
|
$this->scheduler = new ServerScheduler();
|
||||||
|
|
||||||
@ -2511,7 +2511,7 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(($this->tickCounter % 20) === 0){
|
if(($this->tickCounter % 20) === 0){
|
||||||
if($this->doTitleTick and Terminal::hasFormattingCodes()){
|
if($this->doTitleTick){
|
||||||
$this->titleTick();
|
$this->titleTick();
|
||||||
}
|
}
|
||||||
$this->currentTPS = 20;
|
$this->currentTPS = 20;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user