mannequin.setPlayerProfile(player.getPlayerProfile()); does not texture mannequin the texture of the player

XMLWordPrintable

    • Type: Bug
    • Resolution: Done
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • 4537-Spigot-688b11a-68057eb (MC:1.21.9) (Implementing API version 1.21.9-R0.1-SNAPSHOT)
    • Yes

      mannequin.setPlayerProfile(player.getPlayerProfile()); does not texture the mannequin the texture of the player. The resulting texture of the mannequin is the default skin "Kai".
       
      The full code that I ran was the following:
      player.setGameMode(GameMode.SPECTATOR);
      Mannequin mannequin = player.getWorld().spawn(player.getLocation(), Mannequin.class);
      mannequin.setHideDescription(false);
      mannequin.setPlayerProfile(player.getPlayerProfile());
      mannequin.setImmovable(true);
      player.setSpectatorTarget(mannequin);
      This resulted in the player spectating a mannequin that did not have the same skin as it. The player is online when this code is ran.

            Assignee:
            Unassigned
            Reporter:
            Chris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: