From 3c71c432f4bb27a600dc9863fa27fb94d44efa3c Mon Sep 17 00:00:00 2001 From: Citrinate Date: Sun, 29 Dec 2024 16:28:21 -0500 Subject: [PATCH] Hide items in storage from Inventory requests --- CS2Interface/IPC/Api/CS2InterfaceController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS2Interface/IPC/Api/CS2InterfaceController.cs b/CS2Interface/IPC/Api/CS2InterfaceController.cs index 5d30a28..cc856cb 100644 --- a/CS2Interface/IPC/Api/CS2InterfaceController.cs +++ b/CS2Interface/IPC/Api/CS2InterfaceController.cs @@ -173,7 +173,7 @@ public ActionResult Inventory(string botName, [FromQuery] bool return BadRequest(new GenericResponse(false, "Inventory not loaded yet")); } - List inventory = client.Inventory.Values.Where(x => x.IsVisible()).ToList(); + List inventory = client.Inventory.Values.Where(x => x.IsVisible() && x.CasketID == null).ToList(); GameObject.SetSerializationProperties(!minimal, showDefs); return Ok(new GenericResponse>(true, inventory));