From ccea7b7d576fac26d7ab878066b34b8ae8e5fa3d Mon Sep 17 00:00:00 2001 From: Armano den Boef <68127614+Rozen4334@users.noreply.github.com> Date: Mon, 9 Aug 2021 01:32:17 +0200 Subject: [PATCH] Return loopback IP if RealPlayer is false --- TShockAPI/TSPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index afde7cef..ba789eea 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -892,7 +892,7 @@ namespace TShockAPI CacheIP = RealPlayer ? (Netplay.Clients[Index].Socket.IsConnected() ? TShock.Utils.GetRealIP(Netplay.Clients[Index].Socket.GetRemoteAddress().ToString()) : "") - : ""; + : "127.0.0.1"; else return CacheIP; }