geforkt von Mirrors/Paper
Ursprung
174c81a963
Commit
d9bdfa4aa2
@ -39,8 +39,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ if (nbttagcompound != null && nbttagcompound.hasKeyOfType("SkullOwner", 10)) {
|
+ if (nbttagcompound != null && nbttagcompound.hasKeyOfType("SkullOwner", 10)) {
|
||||||
+ NBTTagCompound owner = nbttagcompound.getCompound("SkullOwner");
|
+ NBTTagCompound owner = nbttagcompound.getCompound("SkullOwner");
|
||||||
+ if (owner.hasKey("Id")) {
|
+ if (owner.hasUUID("Id")) {
|
||||||
+ nbttagcompound.map.put("SkullOwnerOrig", owner.map.get("Id"));
|
+ nbttagcompound.setUUID("SkullOwnerOrig", owner.getUUID("Id"));
|
||||||
+ TileEntitySkull.sanitizeUUID(owner);
|
+ TileEntitySkull.sanitizeUUID(owner);
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
@ -23,3 +23,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
return GameProfileSerializer.a(this.get(s));
|
return GameProfileSerializer.a(this.get(s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final boolean hasUUID(String s) { return this.b(s); } // Paper - OBFHELPER
|
||||||
|
public boolean b(String s) {
|
||||||
|
+ // Paper start - support old format
|
||||||
|
+ if (hasKey(s + "Least") && hasKey(s + "Most")) {
|
||||||
|
+ return true;
|
||||||
|
+ }
|
||||||
|
+ // Paper end
|
||||||
|
NBTBase nbtbase = this.get(s);
|
||||||
|
|
||||||
|
return nbtbase != null && nbtbase.b() == NBTTagIntArray.a && ((NBTTagIntArray) nbtbase).getInts().length == 4;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren