Merge branch 'release/3.1' into release/3.2

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

View File

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