Server: drop redundant proxy function broadcastPacket()

this is just making it harder to search for broadcast usages, and we want to get rid of all packet broadcasting shit from Server anyway.
This commit is contained in:
Dylan K. Taylor
2019-08-19 19:30:57 +01:00
parent 8557c93f04
commit 965177fb74
6 changed files with 7 additions and 19 deletions

View File

@ -155,7 +155,7 @@ class Human extends Living implements ProjectileSource, InventoryHolder{
$pk = new PlayerSkinPacket();
$pk->uuid = $this->getUniqueId();
$pk->skin = $this->skin;
$this->server->broadcastPacket($targets ?? $this->hasSpawned, $pk);
$this->server->broadcastPackets($targets ?? $this->hasSpawned, [$pk]);
}
public function jump() : void{