Revert "Better time ticking and sync (#2)"

didn't consider modded clients, how naive 🤦

This reverts commit e9f2bf0085e89955ec6eb7ff9b07b004e8153e2c.
This commit is contained in:
Dylan K. Taylor 2017-03-02 10:51:52 +00:00
parent 4fbc5738e3
commit d25c8d93ca

View File

@ -155,6 +155,8 @@ class Level implements ChunkManager, Metadatable{
private $cacheChunks = false;
private $sendTimeTicker = 0;
/** @var Server */
private $server;
@ -620,7 +622,7 @@ class Level implements ChunkManager, Metadatable{
if($this->stopTime === true){
return;
}else{
$this->time += $this->tickRate;
$this->time += 1;
}
}
@ -649,6 +651,11 @@ class Level implements ChunkManager, Metadatable{
$this->checkTime();
if(++$this->sendTimeTicker === 200){
$this->sendTime();
$this->sendTimeTicker = 0;
}
$this->unloadChunks();
//Do block updates