修了不少东西
This commit is contained in:
@@ -197,6 +197,12 @@ public sealed class DushMaterialLedger : MonoBehaviour
|
||||
InitializeIfNeeded();
|
||||
}
|
||||
|
||||
if (!loadedFromSave && hasAnyRecoverableLocalState)
|
||||
{
|
||||
Debug.LogWarning("[DushMaterialLedger] Recoverable save state exists but could not be loaded; skip saving to avoid overwriting older material data.");
|
||||
return;
|
||||
}
|
||||
|
||||
SyncMirrorCounts();
|
||||
DushMaterialLedgerStorage.TrySave(BuildPayload());
|
||||
SyncToPlayerData();
|
||||
|
||||
Reference in New Issue
Block a user