Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Tab: fix IndexOutOfBounds
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Dec 13, 2023
1 parent 1860a4b commit 8310b68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private List<String> getTabMap(HashMap<String, List<String>> map, Player player,
}
}

tabList.add(stringBuilder.substring(0, stringBuilder.length() - 1));
tabList.add(!stringBuilder.isEmpty() ? stringBuilder.substring(0, stringBuilder.length() - 1) : stringBuilder.toString());

map.put(playerGroup, tabList);
return tabList;
Expand Down

0 comments on commit 8310b68

Please sign in to comment.