Skip to content

Commit

Permalink
Hide items in storage from Inventory requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Dec 29, 2024
1 parent 22f6559 commit 3c71c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CS2Interface/IPC/Api/CS2InterfaceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public ActionResult<GenericResponse> Inventory(string botName, [FromQuery] bool
return BadRequest(new GenericResponse(false, "Inventory not loaded yet"));
}

List<InventoryItem> inventory = client.Inventory.Values.Where(x => x.IsVisible()).ToList();
List<InventoryItem> inventory = client.Inventory.Values.Where(x => x.IsVisible() && x.CasketID == null).ToList();
GameObject.SetSerializationProperties(!minimal, showDefs);

return Ok(new GenericResponse<List<InventoryItem>>(true, inventory));
Expand Down

0 comments on commit 3c71c43

Please sign in to comment.