Fixed stupid profile saver bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user