From 447363269165ce896666a389ad03d6e4ddcab862 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Fri, 13 Jan 2012 16:23:03 +0800 Subject: [PATCH] Remove redundunt -ip handling in TShock. TAPI already handles -ip --- TShockAPI/TShock.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 5ea49142..94c72973 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -320,19 +320,6 @@ namespace TShockAPI { for (int i = 0; i < parms.Length; i++) { - if (parms[i].ToLower() == "-ip") - { - IPAddress ip; - if (IPAddress.TryParse(parms[++i], out ip)) - { - Netplay.serverListenIP = ip; - Console.Write("Using IP: {0}", ip); - } - else - { - Console.WriteLine("Bad IP: {0}", parms[i]); - } - } if (parms[i].ToLower() == "-configpath") { var path = parms[++i];