Fixed stupid profile saver bug

This commit is contained in:
Auxilor
2023-05-18 15:35:47 +01:00
parent eddf240f0c
commit 6645e216d5

View File

@@ -18,12 +18,7 @@ class ProfileSaver(
val uuid = iterator.next()
iterator.remove()
val profile = handler.accessLoadedProfile(uuid)
if (profile == null) {
iterator.remove()
continue
}
val profile = handler.accessLoadedProfile(uuid) ?: continue
handler.saveKeysFor(uuid, profile.data.keys)
}