PaperMC/paper-server/nms-patches/ItemSkull.patch
CraftBukkit/Spigot a9eb9b3f1a SPIGOT-2495: Better validation of Skulls.
By: md_5 <git@md-5.net>
2016-07-12 20:18:08 +10:00

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;
}
}