Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 96c2918

Browse files
committed
fix: update snapshot logic to use snapshotTag for consistency
- Replaced `tag.fast()` with `snapshotTag().fast()` in snapshot methods of player data containers.
1 parent 7bb1713 commit 96c2918

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

surf-cloud-core/surf-cloud-core-common/src/main/kotlin/dev/slne/surf/cloud/core/common/player/ppdc/PersistentPlayerDataContainerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ open class PersistentPlayerDataContainerImpl(
144144
}
145145

146146
override fun snapshot(): PersistentPlayerDataContainerImpl {
147-
return PersistentPlayerDataContainerImpl(tag.fast())
147+
return PersistentPlayerDataContainerImpl(snapshotTag().fast())
148148
}
149149

150150
fun fromTagCompound(tag: CompoundBinaryTag) {

surf-cloud-core/surf-cloud-core-common/src/main/kotlin/dev/slne/surf/cloud/core/common/player/ppdc/TrackingPlayerPersistentDataContainerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ open class TrackingPlayerPersistentDataContainerImpl(
7777
}
7878

7979
override fun snapshot(): TrackingPlayerPersistentDataContainerImpl {
80-
return TrackingPlayerPersistentDataContainerImpl(tag.fast())
80+
return TrackingPlayerPersistentDataContainerImpl(snapshotTag().fast())
8181
}
8282
}

0 commit comments

Comments
 (0)