diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 2c50bf97..0c697c24 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -210,6 +210,9 @@ namespace TShockAPI Commands.InitCommands(); //RconHandler.StartThread(); + if (Config.RestApiEnabled) + RestApi.Start(); + if (Config.BufferPackets) PacketBuffer = new PacketBufferer(); @@ -434,8 +437,6 @@ namespace TShockAPI AuthToken = 0; } Regions.ReloadAllRegions(); - if (Config.RestApiEnabled) - RestApi.Start(); StatTracker.CheckIn(); FixChestStacks();