Add allowsListing to settings packet

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-11-05 15:59:33 +01:00
parent 5f0c4aedbe
commit 9dd1e4a550

View File

@ -16,6 +16,7 @@ public class ClientSettingsPacket extends ClientPlayPacket {
public byte displayedSkinParts;
public Player.MainHand mainHand = Player.MainHand.RIGHT;
public boolean disableTextFiltering;
public boolean allowsListing;
@Override
public void read(@NotNull BinaryReader reader) {
@ -26,6 +27,7 @@ public class ClientSettingsPacket extends ClientPlayPacket {
this.displayedSkinParts = reader.readByte();
this.mainHand = Player.MainHand.values()[reader.readVarInt()];
this.disableTextFiltering = reader.readBoolean();
this.allowsListing = reader.readBoolean();
}
@Override
@ -39,5 +41,6 @@ public class ClientSettingsPacket extends ClientPlayPacket {
writer.writeByte(displayedSkinParts);
writer.writeVarInt(mainHand.ordinal());
writer.writeBoolean(disableTextFiltering);
writer.writeBoolean(allowsListing);
}
}