You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 07:06:30 +09:00
MasterServer sample improved
This commit is contained in:
@@ -23,7 +23,11 @@ namespace MSClient
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string host = comboBox1.SelectedItem.ToString();
|
||||
if (comboBox1.SelectedItem == null)
|
||||
return;
|
||||
|
||||
var splits = comboBox1.SelectedItem.ToString().Split(' ');
|
||||
var host = Int64.Parse(splits[0]);
|
||||
Program.RequestNATIntroduction(host);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user