diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt index 56497287e..b44017c87 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt @@ -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) }