mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
SPIGOT-2495: Better validation of Skulls.
This commit is contained in:
parent
0df416d679
commit
ca1bb1c445
10
nms-patches/ItemSkull.patch
Normal file
10
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 New Issue
Block a user