Skip to content

Commit 3be8a83

Browse files
committed
Allow picking items from inventory
1 parent c78f563 commit 3be8a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-server/patches/sources/net/minecraft/server/network/ServerGamePacketListenerImpl.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@
545545
if (i != -1) {
546546
- if (Inventory.isHotbarSlot(i)) {
547547
- inventory.setSelectedSlot(i);
548-
+ if (Inventory.isHotbarSlot(event.getTargetSlot())) { // Paper - Add PlayerPickItemEvent
548+
+ if (Inventory.isHotbarSlot(i) && Inventory.isHotbarSlot(event.getTargetSlot())) { // Paper - Add PlayerPickItemEvent
549549
+ inventory.setSelectedSlot(event.getTargetSlot()); // Paper - Add PlayerPickItemEvent
550550
} else {
551551
- inventory.pickSlot(i);

0 commit comments

Comments
 (0)