mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2025-03-01 16:04:57 -05:00
Fix serverbound sign update encoding
This commit is contained in:
parent
3592127d80
commit
307b3cf372
1 changed files with 4 additions and 4 deletions
|
@ -28,21 +28,21 @@ public class ServerboundSignUpdatePacket implements MinecraftPacket {
|
|||
this.isFrontText = isFrontText;
|
||||
}
|
||||
|
||||
public ServerboundSignUpdatePacket(ByteBuf in, MinecraftCodecHelper helper) throws IOException {
|
||||
public ServerboundSignUpdatePacket(ByteBuf in, MinecraftCodecHelper helper) {
|
||||
this.position = helper.readPosition(in);
|
||||
this.isFrontText = in.readBoolean();
|
||||
this.lines = new String[4];
|
||||
for (int count = 0; count < this.lines.length; count++) {
|
||||
this.lines[count] = helper.readString(in);
|
||||
}
|
||||
this.isFrontText = in.readBoolean();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serialize(ByteBuf out, MinecraftCodecHelper helper) throws IOException {
|
||||
public void serialize(ByteBuf out, MinecraftCodecHelper helper) {
|
||||
helper.writePosition(out, this.position);
|
||||
out.writeBoolean(this.isFrontText);
|
||||
for (String line : this.lines) {
|
||||
helper.writeString(out, line);
|
||||
}
|
||||
out.writeBoolean(this.isFrontText);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue