You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: surf-cloud-core/surf-cloud-core-common/src/main/kotlin/dev/slne/surf/cloud/core/common/player/ppdc/PersistentPlayerDataContainerImpl.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -215,20 +215,20 @@ open class PersistentPlayerDataContainerImpl(
215
215
) {
216
216
if (pathToDeepestParent.isEmpty()) return
217
217
218
-
val stack =Stack<Pair<FastCompoundBinaryTag, String>>()
218
+
val stack =ArrayDeque<Pair<FastCompoundBinaryTag, String>>()
219
219
var current:FastCompoundBinaryTag= root
220
220
221
221
for (segment in pathToDeepestParent) {
222
222
val childTag = current.getCompound(segment, null) ?:return
223
223
val childFast = childTag as?FastCompoundBinaryTag?: childTag.fast()
224
224
225
225
current.put(segment, childFast)
226
-
stack.push(current to segment)
226
+
stack.addLast(current to segment)
227
227
current = childFast
228
228
}
229
229
230
230
while (stack.isNotEmpty()) {
231
-
val (parent, key) = stack.pop()
231
+
val (parent, key) = stack.removeLast()
232
232
val child = parent.getCompound(key, null) ?:continue
0 commit comments