From a9d3d9461f58eb3e2603071eabdde418a9c89eba Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 6 Oct 2013 08:42:52 +1100 Subject: [PATCH] Mojang nerfed tab lists :( --- proxy/src/main/java/net/md_5/bungee/tab/Custom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/tab/Custom.java b/proxy/src/main/java/net/md_5/bungee/tab/Custom.java index 4b0f7c55..b38ae4b1 100644 --- a/proxy/src/main/java/net/md_5/bungee/tab/Custom.java +++ b/proxy/src/main/java/net/md_5/bungee/tab/Custom.java @@ -46,7 +46,7 @@ public class Custom extends TabListAdapter implements CustomTabList if ( text != null ) { - Preconditions.checkArgument( text.length() <= MAX_LEN, "text must be <= %s chars", MAX_LEN ); + Preconditions.checkArgument( text.length() <= MAX_LEN - 2, "text must be <= %s chars", MAX_LEN - 2 ); Preconditions.checkArgument( !ChatColor.stripColor( text ).isEmpty(), "Text cannot consist entirely of colour codes" ); text = attempt( text ); sentStuff.add( text );