We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c78f563 commit 3be8a83Copy full SHA for 3be8a83
paper-server/patches/sources/net/minecraft/server/network/ServerGamePacketListenerImpl.java.patch
@@ -545,7 +545,7 @@
545
if (i != -1) {
546
- if (Inventory.isHotbarSlot(i)) {
547
- inventory.setSelectedSlot(i);
548
-+ if (Inventory.isHotbarSlot(event.getTargetSlot())) { // Paper - Add PlayerPickItemEvent
++ if (Inventory.isHotbarSlot(i) && Inventory.isHotbarSlot(event.getTargetSlot())) { // Paper - Add PlayerPickItemEvent
549
+ inventory.setSelectedSlot(event.getTargetSlot()); // Paper - Add PlayerPickItemEvent
550
} else {
551
- inventory.pickSlot(i);
0 commit comments