Server: fixed borked serverCommand timings

This commit is contained in:
Dylan K. Taylor 2022-10-14 20:02:44 +01:00
parent 57deb60355
commit 2cc8a56e68
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -1850,10 +1850,12 @@ class Server{
$this->getMemoryManager()->check();
if($this->console !== null){
Timings::$serverCommand->startTiming();
while(($line = $this->console->readLine()) !== null){
$this->consoleSender ??= new ConsoleCommandSender($this, $this->language);
$this->dispatchCommand($this->consoleSender, $line);
}
Timings::$serverCommand->stopTiming();
}
Timings::$serverTick->stopTiming();