even more things ive forgotten

This commit is contained in:
BuildTools 2024-05-10 23:24:10 +02:00
parent ee41831b67
commit aa5b80d4d3
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ use std::fs;
use crate::{net::PlayerSession, util}; use crate::{net::PlayerSession, util};
pub async fn on_get_bag_cs_req(session: &PlayerSession, _: &GetBagCsReq) -> Result<()> { pub async fn on_get_bag_cs_req(session: &PlayerSession, _: &GetBagCsReq) -> Result<()> {
let json_data = fs::read_to_string("C:/Users/Al-Shebli/Downloads/HSR 2.3 beta/JadeSR-masters/jadesr/gameserver/src/net/handlers/inventory.json").expect("Failed to read inventory.json"); let json_data = fs::read_to_string("PATH HERE").expect("Failed to read inventory.json");
let json_value: Value = serde_json::from_str(&json_data).expect("Failed to parse JSON data"); let json_value: Value = serde_json::from_str(&json_data).expect("Failed to parse JSON data");
// Extract ranks // Extract ranks

View file

@ -7,6 +7,7 @@ mod mission;
mod player; mod player;
mod scene; mod scene;
mod tutorial; mod tutorial;
mod inventory;
use anyhow::Result; use anyhow::Result;
use paste::paste; use paste::paste;