mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Revert "Better time ticking and sync (#2)"
didn't consider modded clients, how naive 🤦
This reverts commit e9f2bf0085e89955ec6eb7ff9b07b004e8153e2c.
This commit is contained in:
parent
4fbc5738e3
commit
d25c8d93ca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user