PaperMC/nms-patches/ItemSkull.patch

10 lines
396 B
Diff

--- a/net/minecraft/server/ItemSkull.java
+++ b/net/minecraft/server/ItemSkull.java
@@ -117,6 +117,7 @@
nbttagcompound.set("SkullOwner", GameProfileSerializer.serialize(new NBTTagCompound(), gameprofile));
return true;
} else {
+ nbttagcompound.remove("SkullOwner"); // CraftBukkit - remove broken skulls
return false;
}
}