mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
cab333b217
Don't send requests of every player was found in the global api cache SpigotMC/Spigot@841270ff1e Correctly set the response code for the cached lookups and return the ... SpigotMC/Spigot@f170b7899c Don't try and re-set the global api cache on reload SpigotMC/Spigot@b410a00a66 Use a compile time sneaky throw hack. SpigotMC/Spigot@508462b96b Fix a missed rename in WorldGenGroundBush SpigotMC/Spigot@0614d8fae9
22 lines
921 B
Diff
22 lines
921 B
Diff
From a0716f6300f2f86e9d18582bcab33c9218b954f8 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 f6d7b2b..860592d 100644
|
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutOpenWindow.java
|
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutOpenWindow.java
|
|
@@ -14,6 +14,7 @@ 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;
|
|
--
|
|
1.9.1
|
|
|