Fix SkullMeta.setPlayerProfile() (#2833)

This commit is contained in:
Brokkonaut 2020-01-10 19:07:29 +01:00
parent 0bb0d2b387
commit 3e0623bf9b

View file

@ -48,7 +48,7 @@ index a4bc7f970..2dd2f476f 100644
public BlockFace getRotation() {
BlockData blockData = getBlockData();
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java
index 4fb27cc7e..18545e5ef 100644
index 4fb27cc7e..96d62bbf8 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java
@@ -0,0 +0,0 @@ package org.bukkit.craftbukkit.inventory;
@ -75,7 +75,7 @@ index 4fb27cc7e..18545e5ef 100644
+ // Paper start
+ @Override
+ public void setPlayerProfile(@Nullable PlayerProfile profile) {
+ this.profile = (profile == null) ? null : CraftPlayerProfile.asAuthlibCopy(profile);
+ setProfile((profile == null) ? null : CraftPlayerProfile.asAuthlibCopy(profile));
+ }
+
+ @Nullable