Skip to content

Conversation

@tanyaofei
Copy link
Contributor

@tanyaofei tanyaofei commented Aug 12, 2024

Fixes #3065

@mdcfe mdcfe self-requested a review August 25, 2024 21:59
@JRoy JRoy added this to the 2.21.1 milestone Mar 24, 2025
@JRoy
Copy link
Member

JRoy commented Mar 24, 2025

still need to test this but at first glance I'd want to remove the use of streams + use the isArmorSlot method in the com.earth2me.essentials.craftbukkit.Inventories class to make it more clear what is going on in this code.

@tanyaofei
Copy link
Contributor Author

I have commit new codes, but one thing to note is that this listener does not only cancel the event of dragging into armor slots but also all events of dragging into the bottom inventory. This is because the slot on the client side does not match the slot on the server side, if not so, the item may appear in a slot that was not dragged to or disappear.

@mdcfe mdcfe modified the milestones: 2.21.1, 2.21.2 Apr 19, 2025
@JRoy JRoy modified the milestones: 2.21.2, 2.22.0 Jul 4, 2025
@JRoy JRoy added type: bugfix PRs that fix bugs in EssentialsX. module: main Issues or PRs for the main Essentials module labels Aug 10, 2025
@JRoy JRoy changed the title Fix invsee might cause items to disappear (#3065) Prevent dragging items between target and invsee Aug 10, 2025
@JRoy JRoy changed the title Prevent dragging items between target and invsee Prevent dragging items outside of invsee Aug 10, 2025
Copy link
Member

@JRoy JRoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring this out! Appreciate it!

@JRoy JRoy enabled auto-merge August 10, 2025 19:09
@JRoy JRoy added this pull request to the merge queue Aug 10, 2025
Merged via the queue into EssentialsX:2.x with commit e0e8d44 Aug 10, 2025
1 check passed
Euphillya added a commit to Euphillya/Essentials-Folia that referenced this pull request Aug 18, 2025
EssentialsX@2ccfad1 Add first login date to /seen (EssentialsX#6258)
EssentialsX@e0e8d44 Prevent dragging items outside of invsee (EssentialsX#5902)
EssentialsX@8ba7a44 Add support for snapshots in VersionUtil (EssentialsX#6265)
EssentialsX@5ed43f3 Do not lowercase afk timeout commands (EssentialsX#6255)
EssentialsX@69fd7bc Fix missing powertoollist permission (EssentialsX#6250)
EssentialsX@302dd3f Maintain strong reference for online users (EssentialsX#6247)
EssentialsX@7c89592 Add setting to preserve fly on gamemode change (EssentialsX#6238)
EssentialsX@7bc91f1 Discord: Add setting to configure an HTTP Proxy for JDA (EssentialsX#6275)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Items are randomly swapped and deleted when using invsee

3 participants