3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-22 06:20:06 +01:00

SPIGOT-4702: Exception when middle clicking certain slots

Dieser Commit ist enthalten in:
md_5 2019-04-16 20:49:28 +10:00
Ursprung be557e69fa
Commit 51d62deced

Datei anzeigen

@ -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());