mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fix #1037
This commit is contained in:
parent
1ce7366cc3
commit
969f0f05b0
2 changed files with 4 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ class PlayerAPI{
|
|||
|
||||
public function spawnToAllPlayers(Player $player){
|
||||
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);
|
||||
if($p->level !== $player->level){
|
||||
$p->dataPacket(MC_MOVE_ENTITY_POSROT, array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue