Skip to content

Can't move the items in inventory when itemstacks in SET_SLOT were edited with ProtocolLib #2219

Description

@Rothes

Describe the bug

I got a plugin depends on ProtocolLib and it listens packet PacketType.Play.Server.SET_SLOT.
It edits the DisplayName and Lore of the ItemStack sends to the clients. Bedrock clients can't move the items edited to other slots.

To Reproduce

  1. Make a plugin listens on PacketType.Play.Server.SET_SLOT and edit the itemstack in it.
  2. Let a Bedrock client click on a ItemStack edited and click on the other slots.
  3. the ItemStack is not put in the slot.

Expected behaviour

Move the ItemStack normally.

Screenshots / Videos

https://drive.google.com/file/d/1OHAG3lgjCAlR-dnRAGg9_hPmbBaOfi1N/view?usp=sharing

Server Version and Plugins

This server is running Tuinity version git-Tuinity-"44e8e5d" (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

Plugins (11): CMI, CMILib, CMIPaperLib, CoreProtect, Geyser-Spigot, PlaceholderAPI, PlugMan, ProtocolLib, ProtocolStringReplacer, Slimefun, ViaVersion

Geyser Dump

No response

Geyser Version

1.2.1-SNAPSHOT (git-master-74a688b)

Minecraft: Bedrock Edition Version

1.16.221

Additional Context

Tested on other servers and got the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Confirmed BugThe bug reported is confirmed and able to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions