Skip to content

Commit 9713cdb

Browse files
committed
Simplify check
1 parent 6e83ece commit 9713cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public boolean isInMainVoiceChannel() {
105105
}
106106

107107
public boolean isInAnyNetwork() {
108-
return Networks.getAll().stream().anyMatch(network -> network.contains(this.getBukkitPlayer()));
108+
return Networks.getAll().stream().anyMatch(network -> network.contains(this));
109109
}
110110

111111
public Network getNetwork() {

0 commit comments

Comments
 (0)