Skip to content

Commit 6e83ece

Browse files
committed
Fix channel ID comparison in Network
1 parent 57f94f4 commit 6e83ece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/clementraynaud/skoice/system/Network.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Network(Skoice plugin, Set<LinkedPlayer> players) {
4343
public void build() {
4444
this.proximityChannel = ProximityChannels.getAll().stream()
4545
.filter(channel -> !Networks.getProximityChannels().contains(channel))
46-
.min(Comparator.comparingInt(channel -> Integer.parseInt(channel.getChannelId())))
46+
.min(Comparator.comparing(ProximityChannel::getChannelId))
4747
.orElseGet(() -> new ProximityChannel(this.plugin, this));
4848
}
4949

0 commit comments

Comments
 (0)