SPIGOT-2495: Better validation of Skulls.

This commit is contained in:
md_5 2016-07-12 20:18:08 +10:00
parent 0df416d679
commit ca1bb1c445

View File

@ -0,0 +1,10 @@
--- 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;
}
}