mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Replaced old deprecated calls
This commit is contained in:
@ -215,7 +215,7 @@ class Explosion{
|
||||
$pk->z = $this->source->z;
|
||||
$pk->radius = $this->size;
|
||||
$pk->records = $send;
|
||||
Server::broadcastPacket($this->level->getUsingChunk($source->x >> 4, $source->z >> 4), $pk->setChannel(Network::CHANNEL_BLOCKS));
|
||||
Server::broadcastPacket($this->level->getChunkPlayers($source->x >> 4, $source->z >> 4), $pk->setChannel(Network::CHANNEL_BLOCKS));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -435,7 +435,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$pk = $sound->encode();
|
||||
|
||||
if($players === null){
|
||||
$players = $this->getUsingChunk($sound->x >> 4, $sound->z >> 4);
|
||||
$players = $this->getChunkPlayers($sound->x >> 4, $sound->z >> 4);
|
||||
}
|
||||
|
||||
if($pk !== null){
|
||||
@ -451,7 +451,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$pk = $particle->encode();
|
||||
|
||||
if($players === null){
|
||||
$players = $this->getUsingChunk($particle->x >> 4, $particle->z >> 4);
|
||||
$players = $this->getChunkPlayers($particle->x >> 4, $particle->z >> 4);
|
||||
}
|
||||
|
||||
if($pk !== null){
|
||||
|
Reference in New Issue
Block a user