Mojang nerfed tab lists :(

This commit is contained in:
md_5 2013-10-06 08:42:52 +11:00
parent 3fc7064997
commit a9d3d9461f

View File

@ -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 );