Fixed length checking with team prefix in GameScoreboard
This commit is contained in:
parent
d9360f2599
commit
b32259d7f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user