mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-09 09:17:43 +01:00
Ignore invalid names in player heads
This commit is contained in:
parent
676e62c71f
commit
8e63fd635b
@ -1440,7 +1440,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
||||
tag.put("profile", profileTag);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user