2022-03-30 08:04:27 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Video <videogamesm12@gmail.com>
|
|
|
|
Date: Wed, 30 Mar 2022 02:01:55 -0600
|
|
|
|
Subject: [PATCH] Validate String UUIDs during the CompoundTag -> GameProfile
|
|
|
|
conversion process
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/nbt/NbtUtils.java b/src/main/java/net/minecraft/nbt/NbtUtils.java
|
2022-05-30 01:36:12 +00:00
|
|
|
index 9ec5bc2c29fc98ac2fbf9ff6231e8c3215ff11a1..9ef6b0a861a2b0f6e6d54775c6b0496689d12d66 100644
|
2022-03-30 08:04:27 +00:00
|
|
|
--- a/src/main/java/net/minecraft/nbt/NbtUtils.java
|
|
|
|
+++ b/src/main/java/net/minecraft/nbt/NbtUtils.java
|
2022-05-30 01:36:12 +00:00
|
|
|
@@ -76,7 +76,12 @@ public final class NbtUtils {
|
2022-04-19 23:49:48 +00:00
|
|
|
}
|
2022-03-30 08:04:27 +00:00
|
|
|
// Paper start - support string UUID's
|
|
|
|
if (compound.contains("Id", 8)) {
|
|
|
|
- uUID = UUID.fromString(compound.getString("Id"));
|
|
|
|
+ // Scissors start - Validate String UUIDs in game profiles
|
|
|
|
+ try {
|
|
|
|
+ uUID = UUID.fromString(compound.getString("Id"));
|
|
|
|
+ } catch (Exception ignored) {
|
|
|
|
+ }
|
|
|
|
+ // Scissors end
|
|
|
|
}
|
|
|
|
// Paper end
|
2022-04-19 23:49:48 +00:00
|
|
|
|