Exception when trying to read Entity Metadata in 1.19.3
Brokkonaut opened this issue ยท 1 comments
- This issue is not solved in a development build
Describe the bug
When trying to read the DataValueCollection in the ENTITY_METADATA packet on a paper server I get an exception: https://cpaste.de/abojelipib.properties
To Reproduce
Register a PacketAdapter listening for ENTITY_METADATA with the following method:
@Override
public void onPacketSending(PacketEvent e) {
final PacketType packetType = e.getPacketType();
if (packetType == PacketType.Play.Server.ENTITY_METADATA) {
PacketContainer packet = e.getPacket();
List<WrappedDataValue> dataValueList = packet.getDataValueCollectionModifier().read(0);
}
}
Expected behavior
Get the DataValueList?
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