Use NetworkBroadcastUtils for broadcasting packets

this eradicates all but 4 usages of Server in Entity, which is extremely cool.
This commit is contained in:
Dylan K. Taylor
2023-03-15 22:28:51 +00:00
parent a31e3331fd
commit 337a254768
4 changed files with 10 additions and 8 deletions

View File

@ -1351,6 +1351,7 @@ class Server{
/**
* @param Player[] $players
* @param ClientboundPacket[] $packets
* @deprecated
*/
public function broadcastPackets(array $players, array $packets) : bool{
return NetworkBroadcastUtils::broadcastPackets($players, $packets);