Fix supporting more places of the old UUID format

Fixes #3734
This commit is contained in:
Aikar
2020-07-01 03:13:57 -04:00
parent 174c81a963
commit d9bdfa4aa2
2 changed files with 12 additions and 2 deletions

View File

@@ -39,8 +39,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper start
+ if (nbttagcompound != null && nbttagcompound.hasKeyOfType("SkullOwner", 10)) {
+ NBTTagCompound owner = nbttagcompound.getCompound("SkullOwner");
+ if (owner.hasKey("Id")) {
+ nbttagcompound.map.put("SkullOwnerOrig", owner.map.get("Id"));
+ if (owner.hasUUID("Id")) {
+ nbttagcompound.setUUID("SkullOwnerOrig", owner.getUUID("Id"));
+ TileEntitySkull.sanitizeUUID(owner);
+ }
+ }