diff options
author | Dico <dico.karssiens@gmail.com> | 2018-08-06 02:59:25 +0100 |
---|---|---|
committer | Dico <dico.karssiens@gmail.com> | 2018-08-06 02:59:25 +0100 |
commit | 957d6f2434f9223107605a8115b6e868de772018 (patch) | |
tree | b900b52388a02cef24490875f06b046b77a806cc | |
parent | de1833607c0643534d68c520de4fa15943017846 (diff) |
Small tweaks
-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 { |