Closed Elikill58 closed 3 weeks ago
I have tried the most recent version of PacketEvents and have seen the first error you mention. I have used a toString method to see the content of the NBTList, I leave it here in case you are interested.
1st type: [10:34:54] [Netty epoll Worker #2/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: Debugging gabriel33 registry tags: Expected: NBTCompound, found: NBTList, data: List([Compound{{piglin_safe=Byte(0), natural=Byte(1), ambient_light=Float(0.0), infiniburn=String(minecraft:infiniburn_overworld), respawn_anchor_works=Byte(0), has_skylight=Byte(1), bed_works=Byte(1), name=String(minecraft:overworld), has_raids=Byte(1), logical_height=Int(256), shrunk=Byte(0), has_ceiling=Byte(0), ultrawarm=Byte(0)}}, Compound{{piglin_safe=Byte(0), natural=Byte(1), ambient_light=Float(0.0), infiniburn=String(minecraft:infiniburn_overworld), respawn_anchor_works=Byte(0), has_skylight=Byte(1), bed_works=Byte(1), name=String(minecraft:overworld_caves), has_raids=Byte(1), logical_height=Int(256), shrunk=Byte(0), has_ceiling=Byte(1), ultrawarm=Byte(0)}}, Compound{{piglin_safe=Byte(1), natural=Byte(0), ambient_light=Float(0.1), infiniburn=String(minecraft:infiniburn_nether), respawn_anchor_works=Byte(1), has_skylight=Byte(0), bed_works=Byte(0), fixed_time=Long(18000), has_raids=Byte(0), name=String(minecraft:the_nether), logical_height=Int(128), shrunk=Byte(1), ultrawarm=Byte(1), has_ceiling=Byte(1)}}, Compound{{piglin_safe=Byte(0), natural=Byte(0), ambient_light=Float(0.0), infiniburn=String(minecraft:infiniburn_end), respawn_anchor_works=Byte(0), has_skylight=Byte(0), bed_works=Byte(0), fixed_time=Long(6000), has_raids=Byte(1), name=String(minecraft:the_end), logical_height=Int(256), shrunk=Byte(0), ultrawarm=Byte(0), has_ceiling=Byte(0)}}])
2nd type: [10:35:19] [Netty epoll Worker #2/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: Debugging gabriel33 registry tags: Expected: NBTCompound, found: NBTList, data: List([Compound{{piglin_safe=Byte(0), natural=Byte(1), ambient_light=Float(0.0), infiniburn=String(minecraft:infiniburn_overworld), respawn_anchor_works=Byte(0), has_skylight=Byte(1), bed_works=Byte(1), effects=String(minecraft:overworld), has_raids=Byte(1), name=String(minecraft:overworld), logical_height=Int(256), coordinate_scale=Double(1.0), shrunk=Byte(0), min_y=Int(-64), ultrawarm=Byte(0), has_ceiling=Byte(0), height=Int(256)}}, Compound{{piglin_safe=Byte(0), natural=Byte(1), ambient_light=Float(0.0), infiniburn=String(minecraft:infiniburn_overworld), respawn_anchor_works=Byte(0), has_skylight=Byte(1), bed_works=Byte(1), effects=String(minecraft:overworld), has_raids=Byte(1), name=String(minecraft:overworld_caves), logical_height=Int(256), coordinate_scale=Double(1.0), shrunk=Byte(0), min_y=Int(-64), ultrawarm=Byte(0), has_ceiling=Byte(1), height=Int(256)}}, Compound{{piglin_safe=Byte(1), natural=Byte(0), ambient_light=Float(0.1), infiniburn=String(minecraft:infiniburn_nether), respawn_anchor_works=Byte(1), has_skylight=Byte(0), bed_works=Byte(0), effects=String(minecraft:the_nether), fixed_time=Long(18000), has_raids=Byte(0), name=String(minecraft:the_nether), logical_height=Int(128), coordinate_scale=Double(8.0), shrunk=Byte(1), min_y=Int(0), ultrawarm=Byte(1), has_ceiling=Byte(1), height=Int(256)}}, Compound{{piglin_safe=Byte(0), natural=Byte(0), ambient_light=Float(0.0), infiniburn=String(minecraft:infiniburn_end), respawn_anchor_works=Byte(0), has_skylight=Byte(0), bed_works=Byte(0), effects=String(minecraft:the_end), fixed_time=Long(6000), has_raids=Byte(1), name=String(minecraft:the_end), logical_height=Int(256), coordinate_scale=Double(1.0), shrunk=Byte(0), min_y=Int(0), ultrawarm=Byte(0), has_ceiling=Byte(0), height=Int(256)}}])
Don't forget to call the init() function after calling load() on PacketEvents. On proxy you can just skip load, and call init() as init calls load if not done yet.
Working on the issue!
I have been using dev build https://github.com/retrooper/packetevents/commit/5247ccd12941421a0691fe94afc91821073de99b for a week and have not seen that error again 👍
Describe the bug Trying to read EntityMetadata packet with version 1.16.1 create bug
Software brand Using Velocity 3.3.0-SNAPSHOT
Plugins
How To Reproduce Listen for packet Events, and try to read packet
WrapperPlayServerEntityMetadata
. One error appear on join, the other when reading this packet.Globally, this code:
My listener:
THEN login with 1.16/1.16.1 client and you will see below errors.
Expected behavior No error.
Logs Error on join:
Error when using
WrapperPlayServerEntityMetadata wrapper = new WrapperPlayServerEntityMetadata(event)
: