mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 01:37:35 +01:00
SPIGOT-4702: Exception when middle clicking certain slots
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c6d3a7e5c4
commit
c7a6f8f4d5
@ -1332,7 +1332,7 @@
|
||||
+ case CLONE:
|
||||
+ if (packetplayinwindowclick.d() == 2) {
|
||||
+ click = ClickType.MIDDLE;
|
||||
+ if (packetplayinwindowclick.c() == -999) {
|
||||
+ if (packetplayinwindowclick.c() < 0) {
|
||||
+ action = InventoryAction.NOTHING;
|
||||
+ } else {
|
||||
+ Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.c());
|
||||
|
Loading…
Reference in New Issue
Block a user