mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 19:47:44 +01:00
Add allowsListing to settings packet
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
5f0c4aedbe
commit
9dd1e4a550
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user