aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0198-MC-112017-Allow-31-instead-of-30-for-item-names.patch
blob: d2db84e973a42886f7f658ccc02a16bee4d6a9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 5e65f26bff62e97dbf079f330ef3d8746928273c Mon Sep 17 00:00:00 2001
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
index cbe5d36d0..70af4ebbb 100644
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
@@ -2448,7 +2448,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
                             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 {
-- 
2.12.2.windows.2