mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
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:
@@ -697,7 +697,7 @@ class World implements ChunkManager{
|
||||
if(empty($targets)){
|
||||
$this->broadcastGlobalPacket($pk);
|
||||
}else{
|
||||
$this->server->broadcastPacket($targets, $pk);
|
||||
$this->server->broadcastPackets($targets, [$pk]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2680,7 +2680,7 @@ class World implements ChunkManager{
|
||||
if(empty($targets)){
|
||||
$this->broadcastGlobalPacket($pk);
|
||||
}else{
|
||||
$this->server->broadcastPacket($targets, $pk);
|
||||
$this->server->broadcastPackets($targets, [$pk]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user