Fixed length checking with team prefix in GameScoreboard

This commit is contained in:
Jonathan Williams 2015-01-12 12:58:40 -08:00
parent d9360f2599
commit b32259d7f1
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ public class GameScoreboard
String line = newLines.get(i);
String prefix = line.substring(0, Math.min(line.length(), 16));
String suffix = ChatColor.getLastColors(line) + line.substring(team.getPrefix().length());
String suffix = ChatColor.getLastColors(line) + line.substring(Math.min(team.getPrefix().length(), 16));
if (!(team.getPrefix() == null ? "" : team.getPrefix()).equals(prefix))
team.setPrefix(prefix);