jakobkmar / KSpigot

Extended Spigot and Bukkit API for Kotlin
https://jakobkmar.github.io/KSpigot
GNU General Public License v3.0
138 stars 33 forks source link

Disallow shift-clicking into GUIs #67

Closed TheLeCrafter closed 4 months ago

TheLeCrafter commented 4 months ago

Fixes an issue with shift-clicking into GUIs that disallow shift-clicking.

When using a RectCompound that isn't fully filled, the player would be able to shift-click items directly into it, without the ability to take them out again. This PR disables the ability to shift-click items into GUIs.

Shift-Clicking into free slots will be disabled by this PR. There currently is no Paper Event to get the original slot and the slot after moving the item.

TheLeCrafter commented 4 months ago

The last two commits were falsely pushed - sorry for that.