This commit is contained in:
TheMode 2021-07-15 05:27:56 +02:00
parent 28b034103e
commit 0a84b1c542

View File

@ -36,6 +36,10 @@ public class ClientEditBookPacket extends ClientPlayPacket {
public void write(@NotNull BinaryWriter writer) {
writer.writeVarInt(slot);
writer.writeStringArray(pages);
writer.writeSizedString(title);
final boolean hasTitle = title != null;
writer.writeBoolean(hasTitle);
if (hasTitle) {
writer.writeSizedString(title);
}
}
}