diff --git a/src/world/World.php b/src/world/World.php index e1caee8cb..a17a459a0 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -629,6 +629,9 @@ class World implements ChunkManager{ * @param Player ...$targets If empty, will send to all players in the world. */ public function sendTime(Player ...$targets) : void{ + if(count($targets) === 0){ + $targets = $this->players; + } foreach($targets as $player){ $player->getNetworkSession()->syncWorldTime($this->time); }