From 957d6f2434f9223107605a8115b6e868de772018 Mon Sep 17 00:00:00 2001 From: Dico Date: Mon, 6 Aug 2018 02:59:25 +0100 Subject: Small tweaks --- src/main/kotlin/io/dico/parcels2/storage/exposed/IdTables.kt | 4 ++-- 1 file 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("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 { -- cgit v1.2.3