mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fix #1037
This commit is contained in:
parent
1ce7366cc3
commit
969f0f05b0
@ -402,7 +402,7 @@ class PlayerAPI{
|
|||||||
|
|
||||||
public function spawnToAllPlayers(Player $player){
|
public function spawnToAllPlayers(Player $player){
|
||||||
foreach($this->getAll() as $p){
|
foreach($this->getAll() as $p){
|
||||||
if($p !== $player and ($p->entity instanceof Entity)){
|
if($p !== $player and ($p->entity instanceof Entity) and ($player->entity instanceof Entity)){
|
||||||
$player->entity->spawn($p);
|
$player->entity->spawn($p);
|
||||||
if($p->level !== $player->level){
|
if($p->level !== $player->level){
|
||||||
$p->dataPacket(MC_MOVE_ENTITY_POSROT, array(
|
$p->dataPacket(MC_MOVE_ENTITY_POSROT, array(
|
||||||
|
@ -44,6 +44,7 @@ class Player{
|
|||||||
private $startAction = false;
|
private $startAction = false;
|
||||||
private $isSleeping = false;
|
private $isSleeping = false;
|
||||||
public $data;
|
public $data;
|
||||||
|
/** @var \Entity */
|
||||||
public $entity = false;
|
public $entity = false;
|
||||||
public $auth = false;
|
public $auth = false;
|
||||||
public $CID;
|
public $CID;
|
||||||
@ -78,6 +79,8 @@ class Player{
|
|||||||
private $chunkCount = array();
|
private $chunkCount = array();
|
||||||
private $received = array();
|
private $received = array();
|
||||||
public $realmsData = array();
|
public $realmsData = array();
|
||||||
|
/** @var \Level */
|
||||||
|
public $level;
|
||||||
|
|
||||||
public function __get($name){
|
public function __get($name){
|
||||||
if(isset($this->{$name})){
|
if(isset($this->{$name})){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user