Skip to content

Commit aad6711

Browse files
authored
Update DefaultShardManagerBuilder.java
This looks like a bug to me
1 parent 40c760f commit aad6711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/dv8tion/jda/bot/sharding/DefaultShardManagerBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public DefaultShardManagerBuilder setShards(final int minShardId, final int maxS
624624
public DefaultShardManagerBuilder setShards(Collection<Integer> shardIds)
625625
{
626626
Checks.notNull(shardIds, "shardIds");
627-
for (Integer id : shards) {
627+
for (Integer id : shardIds) {
628628
Checks.notNegative(id, "minShardId");
629629
Checks.check(id < this.shardsTotal, "maxShardId must be lower than shardsTotal");
630630
}

0 commit comments

Comments
 (0)