mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-25 00:41:23 +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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user