/// <summary> /// Removes an item on the ground if the remote id matches one in the list. /// </summary> /// <param name="client"></param> /// <param name="handle"></param> public static void RemoveDroppedItemFromGround(Client client, int handle) { DroppedItem droppedItem = DroppedItems.Find(x => x.SpawnedObject.Value == handle); if (droppedItem == null) { return; } if (droppedItem.Position.DistanceTo2D(client.Position) > 3) { return; } DroppedItems.Remove(droppedItem); droppedItem.PickupItem(); AddItemToInventory(client, droppedItem.Name, droppedItem.StackCount, droppedItem.Item); }