From 9df87854151465fc235d0f2a082cbb3e1ff5de3d Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 4 Feb 2012 21:24:53 -0700 Subject: [PATCH] Undid change to -rest-enabled that would limit the functionality of the startup parameter. --- TShockAPI/TShock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 30bf13f6..6c8e8054 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -375,7 +375,7 @@ namespace TShockAPI } if (parms[i].ToLower() == "-rest-enabled") { - Config.RestApiEnabled = true; + Config.RestApiEnabled = Convert.ToBoolean(parms[++i]); Console.WriteLine("Startup parameter overrode REST enable."); }