mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-29 15:06:46 +02:00
SPIGOT-4702: Exception when middle clicking certain slots
This commit is contained in:
parent
be557e69fa
commit
51d62deced
1 changed files with 1 additions and 1 deletions
|
@ -1332,7 +1332,7 @@
|
||||||
+ case CLONE:
|
+ case CLONE:
|
||||||
+ if (packetplayinwindowclick.d() == 2) {
|
+ if (packetplayinwindowclick.d() == 2) {
|
||||||
+ click = ClickType.MIDDLE;
|
+ click = ClickType.MIDDLE;
|
||||||
+ if (packetplayinwindowclick.c() == -999) {
|
+ if (packetplayinwindowclick.c() < 0) {
|
||||||
+ action = InventoryAction.NOTHING;
|
+ action = InventoryAction.NOTHING;
|
||||||
+ } else {
|
+ } else {
|
||||||
+ Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.c());
|
+ Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.c());
|
||||||
|
|
Loading…
Add table
Reference in a new issue