mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 04:31:58 +01:00
f4e3b4e439
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 Bukkit Changes: 5b680f0b Note maximum objective score length in documentation CraftBukkit Changes:5932f8a7
Load default world spawn areas in consistent order3a5dc78f
Fix confusing migration message appearing on fresh server516a408f
Remove redundant CraftBukkit change for secondary world data73a2c749
Process conversation input on the main thread.100c3f07
Cap Objective Score Length6e842759
Cross World Entity Teleportation7deba1c6
Check for blank OfflinePlayer Namesf2746a5e
Descriptive kick reasons instead of Nope!b0212308
Cap Channel Registrationsa610dcd8
Identify CraftScheduler threads with useful names Spigot Changes: 19c3c5a5 Rebuild patches
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
From 35b4f32684ff97962ae89e7ee33ffcd2fe337996 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 e7e7b41c0..3409ae720 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
@@ -2081,7 +2081,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.20.1
|
|
|