1
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2025-05-25 14:57:08 +00:00

Merge branch 'release/3.2'

This commit is contained in:
Dylan K. Taylor 2018-08-06 18:45:53 +01:00
commit fb0cc0804c

@ -801,8 +801,10 @@ class Level implements ChunkManager, Metadatable{
$this->checkSleep();
}
if(!empty($this->players) and !empty($this->globalPackets)){
$this->server->broadcastPackets($this->players, $this->globalPackets);
if(!empty($this->globalPackets)){
if(!empty($this->players)){
$this->server->broadcastPackets($this->players, $this->globalPackets);
}
$this->globalPackets = [];
}