diff options
-rw-r--r-- | src/main/kotlin/io/dico/parcels2/storage/exposed/IdTables.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/io/dico/parcels2/storage/exposed/IdTables.kt b/src/main/kotlin/io/dico/parcels2/storage/exposed/IdTables.kt index 9b383af..98e209d 100644 --- a/src/main/kotlin/io/dico/parcels2/storage/exposed/IdTables.kt +++ b/src/main/kotlin/io/dico/parcels2/storage/exposed/IdTables.kt @@ -123,9 +123,9 @@ object ProfilesT : IdTransactionsTable<ProfilesT, PlayerProfile>("parcel_profile } override fun getOrInitId(profile: PlayerProfile): Int = when (profile) { - is PlayerProfile.Real -> getOrInitId(profile.uuid, profile.name) + is PlayerProfile.Real -> getOrInitId(profile.uuid, profile.nameOrBukkitName) is PlayerProfile.Fake -> getOrInitId(profile.name) - else -> throw IllegalArgumentException() + else -> throw IllegalArgumentException() // Unresolved profiles cannot be added to the database } override fun getItem(row: ResultRow): PlayerProfile { |