Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 9db3e89

Browse files
author
Dytanic
committed
set templates collection mutable
1 parent cd44099 commit 9db3e89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudnet-lib/src/main/java/de/dytanic/cloudnet/lib/server/ServerGroup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import java.util.ArrayList;
1616
import java.util.Arrays;
1717
import java.util.Collection;
18+
import java.util.Collections;
1819

1920
/**
2021
* Created by Tareko on 21.05.2017.
@@ -78,7 +79,7 @@ public ServerGroup(String name, Collection<String> wrapper, boolean kickedForceF
7879
new PriorityConfig(groupPriority, priorityForGroupOnlineCount)
7980
);
8081

81-
this.templates = Arrays.asList(new Template("default", TemplateResource.LOCAL, null, new String[]{}, new ArrayList<>()));
82+
this.templates = new ArrayList<>(Collections.singletonList(new Template("default", TemplateResource.LOCAL, null, new String[]{}, new ArrayList<>())));
8283
}
8384

8485
public SimpleServerGroup toSimple()

0 commit comments

Comments
 (0)