mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
SPIGOT-2495: Better validation of Skulls.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b38424139e
commit
a9eb9b3f1a
1 changed files with 10 additions and 0 deletions
10
paper-server/nms-patches/ItemSkull.patch
Normal file
10
paper-server/nms-patches/ItemSkull.patch
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue