Hey, I noticed something weird and i am not sure if its caused by pmmp handling the item transactions slower than the interact packet or by mcbe sending them in wrong order.. When you listen for the InteractPacket (in my case InteractPacket::ACTION_MOUSEOVER) var dump a player's held item causes to dump the correct item when simply hovering an entity, but when you already look at an entity and then change the hold item, it will dump the previously hold item instead of the current one. My workaround is to delay the function i call by 1 tick, but this feels bad to do. Anyone knows the reason for this/why this happens/how to fix it in a better way?
Are you saying that the mouseover event is resent when the player changes a hotbar slot? The most likely cause of this is MobEquipment changing hotbar slots is not arriving until after the mouseover interaction.