13
0
geforkt von Mirrors/Paper

[CI-SKIP] Remove bad null annotation (#5538)

Dieser Commit ist enthalten in:
Jake Potrebic 2021-04-23 14:08:56 -07:00
Ursprung 99eeb79087
Commit 98eb2c8d94
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -2397,8 +2397,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
+
+ @Nullable public UUID getUUID(String prefix) { return a(prefix); } // Paper - OBFHELPER
+ @Nullable
+ /**
+ * You must use {@link #hasUUID(String)} before or else it <b>will</b> throw an NPE.
+ */
+ public UUID getUUID(String prefix) { return a(prefix); } // Paper - OBFHELPER
public UUID a(String s) {
return GameProfileSerializer.a(this.get(s));
}

Datei anzeigen

@ -41,8 +41,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
@@ -0,0 +0,0 @@ public class NBTTagCompound implements NBTBase {
@Nullable public UUID getUUID(String prefix) { return a(prefix); } // Paper - OBFHELPER
@Nullable
*/
public UUID getUUID(String prefix) { return a(prefix); } // Paper - OBFHELPER
public UUID a(String s) {
+ // Paper start - support old format
+ if (!hasKeyOfType(s, 11) && this.hasKeyOfType(s + "Most", 99) && this.hasKeyOfType(s + "Least", 99)) {