diff options
author | md_5 <git@md-5.net> | 2016-07-12 20:18:08 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-07-12 20:18:08 +1000 |
commit | ca1bb1c44509603ef94285c7c4729b79026ae4cb (patch) | |
tree | ea6d823024c78115896edd146242670a2fa5badd /nms-patches | |
parent | 0df416d6793993b1c5559a18d4f9cee4ab209712 (diff) | |
download | craftbukkit-ca1bb1c44509603ef94285c7c4729b79026ae4cb.tar craftbukkit-ca1bb1c44509603ef94285c7c4729b79026ae4cb.tar.gz craftbukkit-ca1bb1c44509603ef94285c7c4729b79026ae4cb.tar.lz craftbukkit-ca1bb1c44509603ef94285c7c4729b79026ae4cb.tar.xz craftbukkit-ca1bb1c44509603ef94285c7c4729b79026ae4cb.zip |
SPIGOT-2495: Better validation of Skulls.
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/ItemSkull.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nms-patches/ItemSkull.patch b/nms-patches/ItemSkull.patch new file mode 100644 index 00000000..2845d0f9 --- /dev/null +++ b/nms-patches/ItemSkull.patch @@ -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; + } + } |