mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Remove some master-only usages of addGlobalPacket()
This commit is contained in:
parent
831a35ec69
commit
e035be8498
@ -698,7 +698,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$pk->time = $this->time;
|
$pk->time = $this->time;
|
||||||
|
|
||||||
if(empty($targets)){
|
if(empty($targets)){
|
||||||
$this->addGlobalPacket($pk);
|
$this->broadcastGlobalPacket($pk);
|
||||||
}else{
|
}else{
|
||||||
$this->server->broadcastPacket($targets, $pk);
|
$this->server->broadcastPacket($targets, $pk);
|
||||||
}
|
}
|
||||||
@ -2922,7 +2922,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$pk = new SetDifficultyPacket();
|
$pk = new SetDifficultyPacket();
|
||||||
$pk->difficulty = $this->getDifficulty();
|
$pk->difficulty = $this->getDifficulty();
|
||||||
if(empty($targets)){
|
if(empty($targets)){
|
||||||
$this->addGlobalPacket($pk);
|
$this->broadcastGlobalPacket($pk);
|
||||||
}else{
|
}else{
|
||||||
$this->server->broadcastPacket($targets, $pk);
|
$this->server->broadcastPacket($targets, $pk);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user