-
Notifications
You must be signed in to change notification settings - Fork 84
Fix skull items not displaying skins #146
base: real1.8
Are you sure you want to change the base?
Fix skull items not displaying skins #146
Conversation
So this PR respects the |
There are a few lines that remove |
Sorry about that, wasn't sure if it was necessary as I wanted it the same throughout. I'll see if I can fix it later. |
@tonybruess @jedediah Would it be possible to get this merged? I'd like to file a PR after this gets merged to expand on the current Skull API to support setting Skull owners by UUID rather than only by usernames. |
If the unnecessary diffs get fixed, I'll merge it. |
import net.minecraft.server.GameProfileSerializer; | ||
import net.minecraft.server.NBTTagCompound; | ||
|
||
+import net.minecraft.server.TileEntitySkull; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be using fully qualified names rather than imports for patches
Feel free to do whatever with this patch. I don't even know if I have the code anymore. I didn't look hard, but maybe you could find what Spigot used to fix this as theirs works. |
@ShinyDialga If you're cool with this, I can file a new PR with these changes + diffs and also take a look at how Spigot fixes this issue, this weekend. |
Go for it |
In 1.8, they added player skull previews to the inventory item. Currently, if you use SkullMeta in order to have a custom SkullOwner, it'll appear in the inventory as a steve skin (it looks like the SkullOwner when placed down though). This patch uses TileEntitySkull.b() to update the skin, and it won't update skin inventory items if it is disabled in bukkit.yml (fetch-skulls) because of the base b method.
Before patch:
After patch:
The skulls in the screenshots use the same method (SkullMeta setSkullOwner()), and both have the fetch-skulls setting enabled in bukkit.yml. Thanks.