mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Merge pull request #396 from lululand-de/master
Fixed IndexOutOfBoundsException on signs update
This commit is contained in:
commit
bb2c50b637
@ -175,6 +175,8 @@ public class SignUtil {
|
|||||||
if (!UpdateHead(sign, PlayerList.get(0).getPlayerName(), timelapse))
|
if (!UpdateHead(sign, PlayerList.get(0).getPlayerName(), timelapse))
|
||||||
timelapse--;
|
timelapse--;
|
||||||
} else {
|
} else {
|
||||||
|
if (one.GetNumber() > PlayerList.size())
|
||||||
|
continue;
|
||||||
TopList pl = PlayerList.get(one.GetNumber() - 1);
|
TopList pl = PlayerList.get(one.GetNumber() - 1);
|
||||||
String PlayerName = pl.getPlayerName();
|
String PlayerName = pl.getPlayerName();
|
||||||
if (PlayerName.length() > 8) {
|
if (PlayerName.length() > 8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user