move global buff toggle logic in commands, add compile flags for playerheartbeat data

This commit is contained in:
yuvlian
2026-05-04 20:10:01 +07:00
committed by amizing25
parent 6aa7670ca8
commit 701a78e9dc
4 changed files with 57 additions and 21 deletions
+3 -3
View File
@@ -84,9 +84,9 @@ async fn create_battle_info(
caster_id: u32,
skill_index: u32,
) -> SceneBattleInfo {
if let Some(player) = session.json_data.get_mut() {
let _ = player.refresh_persistent().await;
}
// if let Some(player) = session.json_data.get_mut() {
// let _ = player.refresh_persistent().await;
// }
let Some(player) = session.json_data.get() else {
tracing::error!("data is not set!");