File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ public NetcodeSessionBuilder<TInput> WithPlayerCount(int count)
159159 {
160160 ArgumentOutOfRangeException . ThrowIfNegativeOrZero ( count ) ;
161161 options . NumberOfPlayers = count ;
162-
163162 return this ;
164163 }
165164
@@ -169,7 +168,6 @@ public NetcodeSessionBuilder<TInput> WithPlayerCount(int count)
169168 public NetcodeSessionBuilder < TInput > WithPlayers ( params NetcodePlayer [ ] players )
170169 {
171170 ArgumentNullException . ThrowIfNull ( players ) ;
172- ArgumentOutOfRangeException . ThrowIfZero ( players . Length ) ;
173171 playerList . AddRange ( players ) ;
174172 return this ;
175173 }
@@ -181,7 +179,6 @@ public NetcodeSessionBuilder<TInput> WithPlayers(IEnumerable<NetcodePlayer> play
181179 {
182180 ArgumentNullException . ThrowIfNull ( players ) ;
183181 playerList . AddRange ( players ) ;
184- ArgumentOutOfRangeException . ThrowIfZero ( playerList . Count ) ;
185182 return this ;
186183 }
187184
You can’t perform that action at this time.
0 commit comments