mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
parent
8fb51bf3b7
commit
46ca469a4a
@ -263,14 +263,6 @@ public class WorldPackets {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Byte[] fromPrimitiveArray(byte[] bytes) {
|
||||
Byte[] newArray = new Byte[bytes.length];
|
||||
for (int i = 0; i < bytes.length; i++) {
|
||||
newArray[i] = bytes[i];
|
||||
}
|
||||
return newArray;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -109,6 +109,9 @@ public final class Protocol1_17_1To1_17 extends AbstractProtocol<ClientboundPack
|
||||
String title = wrapper.read(TITLE_STRING_TYPE);
|
||||
tag.put("title", new StringTag(title));
|
||||
|
||||
// Even if unused, legacy servers check for the author tag
|
||||
tag.put("author", new StringTag(wrapper.user().getProtocolInfo().getUsername()));
|
||||
|
||||
// Write signing
|
||||
wrapper.write(Type.BOOLEAN, true);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user