ProtocolLib

3M Downloads

Unable to display skin parts on fake players (Paper 1.14)

bicrypt opened this issue ยท 0 comments

commented

Make sure you've done the following:

  • You're using the latest build for your server version
  • This isn't an issue caused by another plugin
  • You've checked for duplicate issues
  • You didn't use /reload

Debug paste link:
Pastebin link

Description and relevant errors:
I have legacy 1.8 code which I now want to make compatible with 1.14 and its new protocol. So I was editing my FakePlayer protocol part and noticed that the skin parts don't show even if I explicitly set them to be shown. The fake player spawns without issue and displays the right skin but all skin parts are "turned off". I have looked into the wiki.vg page and sent the appropriate bitmask for the skin parts as defined there.

I will provide a code snippet here which contains all the code I currently use in my project regarding spawning of fake players. (Note: The DataWatcher part starts at line 190, if you would like to jump right there. Spawning starts at line 119.)

As you can see in the code: I try to send the skin parts several times (once at entity spawn, and twice as metadata packets), but they won't show. On spigot 1.8 I sent the same bitmask on index 10 and it worked there, but ofc this index doesn't work with 1.14 now.

I would really appreciate it if you could find the time to look into this and tell me if I did something wrong here or if this is a bug by wiki.vg or ProtocolLib.

Kind Regards,
Max