ProtocolLib

3M Downloads

PacketContainer#getItemListModifier() throwing exception

WidziKasztany opened this issue ยท 0 comments

commented

This issue is not solved in a development build

Describe the bug
Hello. Im developing plugin for my minecraft server that uses ProtocolLib and i need to change appearances of dropped item entities. While doing so i stumbled upon a bug where even though packet.getItemListModifier().size() returns 1, packet.getItemListModifier().getValues() returns exception.
I tried switching to 1.20.1 and 1.20.4, deleting plugins/ProtocolLib/, versions/, libraries/, cache/ folders.

To Reproduce
obraz

Expected behavior
packet.getItemListModifier().getValues() should return list of items, not throw exception

Screenshots
obraz
obraz
I have an utility function for dumping packet data:
obraz
obraz
obraz

Version Info
ProtocolLib 5.2.0, ProtocolLib 5.1.0. Tested on 1.20.1 and 1.20.4.
/protocol dump: https://pastebin.com/raw/28gHZaKx

Additional context
Other than changing appearances of dropped items, i also need to change appearances of item held by other entities etc. and i don't want to change their appearances server-side, so i really need a fix for that problem specifically.