3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-19 14:30:16 +01:00

Ignore invalid names in player heads

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-04-26 09:29:19 +02:00
Ursprung 676e62c71f
Commit 8e63fd635b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -1440,7 +1440,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
tag.put("profile", profileTag); tag.put("profile", profileTag);
final String name = skullOwnerTag.getString("Name"); final String name = skullOwnerTag.getString("Name");
if (name != null) { if (name != null && name.length() <= 16 && name.indexOf(' ') == -1) { // Ignore invalid names
profileTag.putString("name", name); profileTag.putString("name", name);
} }