Skip to content

Commit

Permalink
Generate a new instance for UID changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed May 7, 2024
1 parent 3ff6437 commit bd39ebb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ object TagArray {
(keyManager?.decrypt(this) ?: this)?.let { tagData ->
coroutineScope { (0 until count).map { async(Dispatchers.IO) {
try {
AmiiboData(tagData).apply {
uID = Foomiibo.generateRandomUID()
}.also {
dataList.add(it)
}
dataList.add(AmiiboData(tagData).also {
it.uID = Foomiibo.generateRandomUID()
})
} catch (e: Exception) {
Debug.warn(e)
}
Expand Down

0 comments on commit bd39ebb

Please sign in to comment.