diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 4bc6d01e2..c3d4b1ece 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -768,12 +768,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ * If null is given, will additionally send the skin to the player itself as well as its viewers. */ public function sendSkin(array $targets = null) : void{ - if($targets === null){ - $targets = $this->hasSpawned; - $targets[] = $this; - } - - parent::sendSkin($targets); + parent::sendSkin($targets ?? $this->server->getOnlinePlayers()); } /**