NOT FINISHED! even more 1.13-pre patches!
This commit is contained in:
@@ -5,16 +5,16 @@ 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 e66584deb..f5fb86414 100644
|
||||
index e4f28b8ac..c09620b37 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
|
||||
case CLONE:
|
||||
if (packetplayinwindowclick.c() == 2) {
|
||||
if (packetplayinwindowclick.d() == 2) {
|
||||
click = ClickType.MIDDLE;
|
||||
- if (packetplayinwindowclick.b() == -999) {
|
||||
+ if (packetplayinwindowclick.b() < 0) { // Paper - GH-404
|
||||
- if (packetplayinwindowclick.c() == -999) {
|
||||
+ if (packetplayinwindowclick.c() < 0) { // Paper - GH-404
|
||||
action = InventoryAction.NOTHING;
|
||||
} else {
|
||||
Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.b());
|
||||
Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.c());
|
||||
--
|
||||
Reference in New Issue
Block a user