From 272cc31b28887d0f2846c5de701be7930dbefc4e Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 10 Dec 2016 02:30:15 +1000 Subject: [PATCH] Fixes rest api error on startup without -ip arg --- TShockAPI/TShock.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index c1172d0a..934ad24c 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -212,6 +212,10 @@ namespace TShockAPI Main.ServerSideCharacter = ServerSideCharacterConfig.Enabled; + //TSAPI previously would do this automatically, but the vanilla server wont + if (Netplay.ServerIP == null) + Netplay.ServerIP = IPAddress.Any; + DateTime now = DateTime.Now; // Log path was not already set by the command line parameter? if (LogPath == LogPathDefault) @@ -1197,7 +1201,7 @@ namespace TShockAPI { if (args.Handled) return; - + if (!Config.AllowCrimsonCreep && (args.Type == TileID.Dirt || args.Type == TileID.FleshWeeds || TileID.Sets.Crimson[args.Type])) {