Skip to content

Commit

Permalink
Fixed errors thrown when accessing top island menu (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jun 30, 2022
1 parent 03be8c7 commit 478a96c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -95,7 +95,7 @@ public ItemStack modifyButtonItem(ItemStack buttonItem, MenuTopIslands superiorM

for (String line : itemMeta.getLore()) {
if (line.contains("{4}")) {
List<SuperiorPlayer> members = island.getIslandMembers(plugin.getSettings().isIslandTopIncludeLeader());
List<SuperiorPlayer> members = new LinkedList<>(island.getIslandMembers(plugin.getSettings().isIslandTopIncludeLeader()));
String memberFormat = line.split("\\{4}:")[1];
if (members.size() == 0) {
lore.add(memberFormat.replace("{}", "None"));
Expand Down

0 comments on commit 478a96c

Please sign in to comment.