mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Server: fixed borked serverCommand timings
This commit is contained in:
parent
57deb60355
commit
2cc8a56e68
@ -1850,10 +1850,12 @@ class Server{
|
|||||||
$this->getMemoryManager()->check();
|
$this->getMemoryManager()->check();
|
||||||
|
|
||||||
if($this->console !== null){
|
if($this->console !== null){
|
||||||
|
Timings::$serverCommand->startTiming();
|
||||||
while(($line = $this->console->readLine()) !== null){
|
while(($line = $this->console->readLine()) !== null){
|
||||||
$this->consoleSender ??= new ConsoleCommandSender($this, $this->language);
|
$this->consoleSender ??= new ConsoleCommandSender($this, $this->language);
|
||||||
$this->dispatchCommand($this->consoleSender, $line);
|
$this->dispatchCommand($this->consoleSender, $line);
|
||||||
}
|
}
|
||||||
|
Timings::$serverCommand->stopTiming();
|
||||||
}
|
}
|
||||||
|
|
||||||
Timings::$serverTick->stopTiming();
|
Timings::$serverTick->stopTiming();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user