Remove some master-only usages of addGlobalPacket()

This commit is contained in:
Dylan K. Taylor 2018-10-20 15:27:08 +01:00
parent 831a35ec69
commit e035be8498

View File

@ -698,7 +698,7 @@ class Level implements ChunkManager, Metadatable{
$pk->time = $this->time;
if(empty($targets)){
$this->addGlobalPacket($pk);
$this->broadcastGlobalPacket($pk);
}else{
$this->server->broadcastPacket($targets, $pk);
}
@ -2922,7 +2922,7 @@ class Level implements ChunkManager, Metadatable{
$pk = new SetDifficultyPacket();
$pk->difficulty = $this->getDifficulty();
if(empty($targets)){
$this->addGlobalPacket($pk);
$this->broadcastGlobalPacket($pk);
}else{
$this->server->broadcastPacket($targets, $pk);
}