mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Packets are cloned on broadcast
This commit is contained in:
parent
8b87733082
commit
b8ff5716c7
@ -355,7 +355,7 @@ class PlayerAPI{
|
|||||||
|
|
||||||
public function broadcastPacket(array $players, RakNetDataPacket $packet){
|
public function broadcastPacket(array $players, RakNetDataPacket $packet){
|
||||||
foreach($players as $p){
|
foreach($players as $p){
|
||||||
$p->dataPacket($packet);
|
$p->dataPacket(clone $packet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user