Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/fastsync/sync/SyncManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ private static org.bukkit.inventory.ItemStack[] snapshotItemContents(
private boolean canCollectComponentsOnly(UUID uuid, SaveKind kind,
com.fastsync.sync.dirty.ComponentDirtyMask.DirtySnapshot snapshot) {
if (!config.isComponentStorageEnabled() || dirtyMask == null || kind.releaseLock
|| (snapshotManager != null && shouldCreateSnapshot(kind.causeName))
|| (snapshotManager != null && shouldTriggerSnapshot(kind.causeName))
|| snapshot == null || snapshot.isEmpty()
|| !playersWithBaseline.contains(uuid) || !componentCursors.containsKey(uuid)) {
return false;
Expand Down Expand Up @@ -3829,7 +3829,7 @@ private SaveResult persistCollectedData(UUID uuid, PlayerData data, SaveKind kin
if (config.isComponentStorageEnabled()
&& dirtyMask != null
&& !kind.releaseLock
&& (snapshotManager == null || !shouldCreateSnapshot(data.getSaveCause()))
&& (snapshotManager == null || !shouldTriggerSnapshot(data.getSaveCause()))
&& dirtyMask.isAnyDirty(uuid)) {
// Pass the caller-provided snapshot (taken before collectPlayerData)
// so persistComponentsOnly's clearDirty after the DB write protects
Expand Down