mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-15 15:16:46 +01:00
ClientCloseWindowPacket window id is a byte, not a var int
This commit is contained in:
parent
b68c30423c
commit
7d574317dc
@ -7,15 +7,15 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
|
|
||||||
public class ClientCloseWindowPacket extends ClientPlayPacket {
|
public class ClientCloseWindowPacket extends ClientPlayPacket {
|
||||||
|
|
||||||
public int windowId;
|
public byte windowId;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void read(@NotNull BinaryReader reader) {
|
public void read(@NotNull BinaryReader reader) {
|
||||||
this.windowId = reader.readVarInt();
|
this.windowId = reader.readByte();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(@NotNull BinaryWriter writer) {
|
public void write(@NotNull BinaryWriter writer) {
|
||||||
writer.writeVarInt(windowId);
|
writer.writeByte(windowId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user