geforkt von Mirrors/Paper
ea855e2b46
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Developers!: You will need to clean up your work/Minecraft/1.13.2 folder for this Also, restore a patch that was dropped in the last upstream Bukkit Changes: 279eeab3 Fix command description not being set 96e2bb18 Remove debug print from SyntheticEventTest CraftBukkit Changes:d3ed1516
Fix dangerously threaded beacons217a293d
Don't relocate joptsimple to allow --help to work.1be05a21
Prepare for imminent Java 12 releasea49270b2
Mappings Update5259d80c
SPIGOT-4669: Fix PlayerTeleportEvent coordinates for relative teleports Spigot Changes: e6eb36f2 Rebuild patches
23 Zeilen
1.1 KiB
Diff
23 Zeilen
1.1 KiB
Diff
From 3d5681205a2678f4417f1e02f12b4da9f96ff5c7 Mon Sep 17 00:00:00 2001
|
|
From: Brokkonaut <hannos17@gmx.de>
|
|
Date: Sun, 4 Sep 2016 16:35:43 -0500
|
|
Subject: [PATCH] Fix AIOOBE in inventory handling
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
index 8b515b722..041e4608e 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
@@ -2066,7 +2066,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
|
|
case CLONE:
|
|
if (packetplayinwindowclick.d() == 2) {
|
|
click = ClickType.MIDDLE;
|
|
- if (packetplayinwindowclick.c() == -999) {
|
|
+ if (packetplayinwindowclick.c() < 0) { // Paper - GH-404
|
|
action = InventoryAction.NOTHING;
|
|
} else {
|
|
Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.c());
|
|
--
|
|
2.21.0
|
|
|