Don't re-set scoreboard lines
This commit is contained in:
parent
31b4fbec15
commit
77125b3a24
@ -25,6 +25,7 @@ public class GameScoreboard
|
|||||||
|
|
||||||
private ArrayList<ScoreboardElement> _elements = new ArrayList<ScoreboardElement>();
|
private ArrayList<ScoreboardElement> _elements = new ArrayList<ScoreboardElement>();
|
||||||
private char[] _chars = "1234567890abcdefghijklmnopqrstuvwxyz".toCharArray();
|
private char[] _chars = "1234567890abcdefghijklmnopqrstuvwxyz".toCharArray();
|
||||||
|
private ArrayList<String> _previousLines = new ArrayList<String>();
|
||||||
|
|
||||||
private String _title;
|
private String _title;
|
||||||
private int _shineIndex;
|
private int _shineIndex;
|
||||||
@ -260,7 +261,7 @@ public class GameScoreboard
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (i >= _previousLines.size() || !_previousLines.get(i).equals(newLines.get(i)))
|
||||||
{
|
{
|
||||||
Team team = GetScoreboard().getTeam(str);
|
Team team = GetScoreboard().getTeam(str);
|
||||||
|
|
||||||
@ -288,6 +289,8 @@ public class GameScoreboard
|
|||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_previousLines = newLines;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String[] split(String line)
|
private String[] split(String line)
|
||||||
|
Loading…
Reference in New Issue
Block a user