sync
This commit is contained in:
parent
6159b35e72
commit
e2740b6a36
3 changed files with 63 additions and 165 deletions
|
|
@ -257,8 +257,8 @@ namespace TShockAPI
|
|||
throw new ArgumentNullException("str");
|
||||
|
||||
string[] comp = str.Split(',');
|
||||
if (comp.Length != 3)
|
||||
throw new FormatException("String does not contain three sections.");
|
||||
if (comp.Length != 4)
|
||||
throw new FormatException("String does not contain 4 sections.");
|
||||
|
||||
int netId = Int32.Parse(comp[0]);
|
||||
int stack = Int32.Parse(comp[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue