mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-15 23:26:21 +01:00
Fix test
This commit is contained in:
parent
28b034103e
commit
0a84b1c542
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user