mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
b742f7a892
Upstream merge (we must go deeper) SpigotMC/Spigot@1e7bc383c3
19 lines
976 B
Diff
19 lines
976 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
|
Date: Sun, 23 Mar 2014 10:53:48 +0000
|
|
Subject: [PATCH] Cap window names to prevent client disconnects
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutOpenWindow.java b/src/main/java/net/minecraft/server/PacketPlayOutOpenWindow.java
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutOpenWindow.java
|
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutOpenWindow.java
|
|
@@ -0,0 +0,0 @@ public class PacketPlayOutOpenWindow extends Packet {
|
|
public PacketPlayOutOpenWindow() {}
|
|
|
|
public PacketPlayOutOpenWindow(int i, int j, String s, int k, boolean flag) {
|
|
+ if (s.length() > 32) s = s.substring( 0, 32 ); // Spigot - Cap window name to prevent client disconnects
|
|
this.a = i;
|
|
this.b = j;
|
|
this.c = s;
|
|
--
|