Skip to content

Commit

Permalink
remove debug cuz im not smart
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Aug 5, 2023
1 parent 070626e commit b0b1036
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.mineinabyss.idofront.serialization

import com.mineinabyss.idofront.messaging.broadcast
import com.mineinabyss.idofront.time.ticks
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
Expand All @@ -23,7 +22,6 @@ object DurationSerializer : KSerializer<Duration> {

override fun deserialize(decoder: Decoder): Duration {
val string = decoder.decodeString()
broadcast(string)
return Duration.parseOrNull(string) ?: fromString(decoder.decodeString()) ?: error("Not a valid duration: $string")
}

Expand Down

0 comments on commit b0b1036

Please sign in to comment.