From a86726e4c13951adc37362ae399f5830bfc1d171 Mon Sep 17 00:00:00 2001 From: Lukas Moungos Date: Mon, 16 Sep 2019 19:25:50 +0200 Subject: [PATCH] minor fix :^) --- ReallifeGamemode.Server/Managers/InventoryManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Managers/InventoryManager.cs b/ReallifeGamemode.Server/Managers/InventoryManager.cs index 2109077e..64a27414 100644 --- a/ReallifeGamemode.Server/Managers/InventoryManager.cs +++ b/ReallifeGamemode.Server/Managers/InventoryManager.cs @@ -514,7 +514,7 @@ namespace ReallifeGamemode.Server.Managers User user = client.GetUser(); string nameOrId = JsonConvert.DeserializeObject(jsonNameOrId); Client target = ClientService.GetClientByNameOrId(nameOrId); - if (target == null || !target.IsLoggedIn() ) + if (target == null || !target.IsLoggedIn() || target == client) { ChatService.PlayerNotFound(client); return;