[SPIGOT-1465] Fix skulls with no owner not displaying texture.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -71,7 +71,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
|
|||||||
void applyToItem(NBTTagCompound tag) {
|
void applyToItem(NBTTagCompound tag) {
|
||||||
super.applyToItem(tag);
|
super.applyToItem(tag);
|
||||||
|
|
||||||
if (hasOwner()) {
|
if (profile != null) {
|
||||||
NBTTagCompound owner = new NBTTagCompound();
|
NBTTagCompound owner = new NBTTagCompound();
|
||||||
GameProfileSerializer.serialize(owner, profile);
|
GameProfileSerializer.serialize(owner, profile);
|
||||||
tag.set(SKULL_OWNER.NBT, owner);
|
tag.set(SKULL_OWNER.NBT, owner);
|
||||||
|
|||||||
Reference in New Issue
Block a user