retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
557 stars 151 forks source link

Item potion_contents serialization issues #1054

Closed dawon closed 2 weeks ago

dawon commented 3 weeks ago

Describe the bug It seems there is problem with serialization of potion_contents component in newest PE. The problem most likely is not in AntiHealthIndicator - I have similar issues in my plugin when trying to read EntityMetadata packet...

Software brand Paper 1.21.3

Plugins packetevents 2.6.0 Bram1903/AntiHealthIndicator 2.3.0

How To Reproduce run one of the following commands: a) /give @p tipped_arrow[potion_contents={custom_color:0}] 1 b) /give @p tipped_arrow[potion_contents={custom_effects:[{id:"minecraft:wither"}]}] 1

Expected behavior The player will get those items, no errors in console and the player won't be kicked

Additional context https://pastebin.com/Dqt8kpUb