2017-03-25 04:18:58 +01:00
|
|
|
From 2e1a789f83071834c7d4846a07f04c6fa7610e42 Mon Sep 17 00:00:00 2001
|
2017-01-02 08:43:50 +01:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Mon, 2 Jan 2017 02:43:22 -0500
|
|
|
|
Subject: [PATCH] MC-112017: Allow 31 instead of 30 for item names
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2017-03-25 04:18:58 +01:00
|
|
|
index 87683b20b..e69817d84 100644
|
2017-01-02 08:43:50 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2017-03-25 04:18:58 +01:00
|
|
|
@@ -2433,7 +2433,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
|
2017-01-02 08:43:50 +01:00
|
|
|
if (packetplayincustompayload.b() != null && packetplayincustompayload.b().readableBytes() >= 1) {
|
|
|
|
String s4 = SharedConstants.a(packetplayincustompayload.b().e(32767));
|
|
|
|
|
|
|
|
- if (s4.length() <= 30) {
|
|
|
|
+ if (s4.length() <= 31) { // Paper - MC-112017
|
|
|
|
if (!s4.isEmpty() || containeranvil.getSlot(2).getItem().isEmpty()) containeranvil.a(s4); // Paper - Hack Fix for MC-111699
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
--
|
2017-03-25 04:18:58 +01:00
|
|
|
2.12.0.windows.1
|
2017-01-02 08:43:50 +01:00
|
|
|
|