diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-16 19:24:24 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-10-16 19:24:24 +0200 |
commit | 7de0e8e7e09e3428c17ca9717c21c02469c31b76 (patch) | |
tree | f8c3d32a286521967a27877231c1ee74fa8c87ab /src/main/kotlin/util/uuid.kt | |
parent | 854ec336cc6a0a3bb60f33acfac28ed45b491a15 (diff) | |
download | Firmament-7de0e8e7e09e3428c17ca9717c21c02469c31b76.tar.gz Firmament-7de0e8e7e09e3428c17ca9717c21c02469c31b76.tar.bz2 Firmament-7de0e8e7e09e3428c17ca9717c21c02469c31b76.zip |
Add edit backpacks button to /firm storage
Diffstat (limited to 'src/main/kotlin/util/uuid.kt')
-rw-r--r-- | src/main/kotlin/util/uuid.kt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/kotlin/util/uuid.kt b/src/main/kotlin/util/uuid.kt index 4aa0749..cccfdd2 100644 --- a/src/main/kotlin/util/uuid.kt +++ b/src/main/kotlin/util/uuid.kt @@ -1,12 +1,10 @@ - - package moe.nea.firmament.util import java.math.BigInteger import java.util.UUID fun parseDashlessUUID(dashlessUuid: String): UUID { - val most = BigInteger(dashlessUuid.substring(0, 16), 16) - val least = BigInteger(dashlessUuid.substring(16, 32), 16) - return UUID(most.toLong(), least.toLong()) + val most = BigInteger(dashlessUuid.substring(0, 16), 16) + val least = BigInteger(dashlessUuid.substring(16, 32), 16) + return UUID(most.toLong(), least.toLong()) } |