mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +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 byte displayedSkinParts;
|
||||||
public Player.MainHand mainHand = Player.MainHand.RIGHT;
|
public Player.MainHand mainHand = Player.MainHand.RIGHT;
|
||||||
public boolean disableTextFiltering;
|
public boolean disableTextFiltering;
|
||||||
|
public boolean allowsListing;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void read(@NotNull BinaryReader reader) {
|
public void read(@NotNull BinaryReader reader) {
|
||||||
@ -26,6 +27,7 @@ public class ClientSettingsPacket extends ClientPlayPacket {
|
|||||||
this.displayedSkinParts = reader.readByte();
|
this.displayedSkinParts = reader.readByte();
|
||||||
this.mainHand = Player.MainHand.values()[reader.readVarInt()];
|
this.mainHand = Player.MainHand.values()[reader.readVarInt()];
|
||||||
this.disableTextFiltering = reader.readBoolean();
|
this.disableTextFiltering = reader.readBoolean();
|
||||||
|
this.allowsListing = reader.readBoolean();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -39,5 +41,6 @@ public class ClientSettingsPacket extends ClientPlayPacket {
|
|||||||
writer.writeByte(displayedSkinParts);
|
writer.writeByte(displayedSkinParts);
|
||||||
writer.writeVarInt(mainHand.ordinal());
|
writer.writeVarInt(mainHand.ordinal());
|
||||||
writer.writeBoolean(disableTextFiltering);
|
writer.writeBoolean(disableTextFiltering);
|
||||||
|
writer.writeBoolean(allowsListing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user