mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
64b19558b6
CraftBukkit removed their implementation that caused this issue, switching to Mojang's implementation which doesn't appear to share it. I already removed the important bit in the last upstream merge, this is just unused and unnecessary now. So we remove it.
26 lines
No EOL
1.3 KiB
Diff
26 lines
No EOL
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Mon, 2 Jan 2017 02:07:24 -0500
|
|
Subject: [PATCH] MC-111699: Ignore Improper Anvil Item Name Packets
|
|
|
|
The client is improperly sending Item Name Packets to the server BEFORE
|
|
the click event. This causes the server to reset before the click event is processed
|
|
|
|
This breaks the ability to rename more than 1 item at a time.
|
|
|
|
See: https://bugs.mojang.com/browse/MC-111699
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
index 7c2d43ac2..cbe5d36d0 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 {
|
|
String s4 = SharedConstants.a(packetplayincustompayload.b().e(32767));
|
|
|
|
if (s4.length() <= 30) {
|
|
- containeranvil.a(s4);
|
|
+ if (!s4.isEmpty() || containeranvil.getSlot(2).getItem().isEmpty()) containeranvil.a(s4); // Paper - Hack Fix for MC-111699
|
|
}
|
|
} else {
|
|
containeranvil.a("");
|
|
--
|