ProtocolLib

3M Downloads

Exception when setting PlayerInfoActions for the PLAYER_INFO packet (1.19.3)

Brokkonaut opened this issue ยท 1 comments

commented
  • [x ] This issue is not solved in a development build

Describe the bug
When trying to set the PlayerInfoActions, I get an exception

To Reproduce
Steps to reproduce the behavior:

PacketContainer playerInfoPacket = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.PLAYER_INFO);
playerInfoPacket.getPlayerInfoActions().write(0, EnumSet.of(PlayerInfoAction.ADD_PLAYER, PlayerInfoAction.UPDATE_LISTED));

Exception: https://cpaste.de/udokerixad.sql

Version Info
ProtocolLib Version: ProtocolLib v5.0.0-SNAPSHOT-b607
Bukkit Version: 1.19.3-R0.1-SNAPSHOT
Server Version: git-Paper-"c919e94" (MC: 1.19.3)
Java Version: 17.0.4

commented

my fault, i looked at the wrong line in the source, the issue was something else.