mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 08:38:45 +01:00
MC-112017: Allow 31 instead of 30 for item names
This commit is contained in:
parent
0c4ef7349f
commit
7a1b393715
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
From 620549ed970974f041d2c0aa00bf4f685a0eca4c 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 3730af8df..e9a84285a 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -2425,7 +2425,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.11.0
|
||||
|
Loading…
Reference in a new issue