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:
Ursprung
676e62c71f
Commit
8e63fd635b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren