skin client update fix

This commit is contained in:
PIVODEVAT
2025-01-19 22:08:10 +03:00
parent 330142f0bf
commit f94ff928c2
5 changed files with 30 additions and 11 deletions

View File

@ -24,20 +24,20 @@ pub struct HasJoinedProperty {
value: String,
}
fn create_profile_response(uuid: String, username: String) -> Response {
fn create_profile_response(uuid: String, username: String, skin_date: String, cape_date: String) -> Response {
let textures = serde_json::json!({
"timestamp": chrono::Utc::now().timestamp(),
"profileId": uuid,
"profileName": username,
"textures": {
"SKIN": {
"url": format!("http://root-kit.ru:3001/textures/skin/{}.png", uuid),
"url": format!("https://root-kit.ru:3002/textures/skin/skin_{}_{}.png", uuid, skin_date),
"metadata": {
"model": "slim"
}
},
"CAPE": {
"url": format!("http://root-kit.ru:3001/textures/cape/{}.png", uuid),
"url": format!("https://root-kit.ru:3002/textures/cape/cape_{}_{}.png", uuid, cape_date),
}
}
});