diff --git a/gradle.properties b/gradle.properties index 10003cd..cba3d79 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=io.github.beradq.adybubbles -version=2.5.0-SNAPSHOT +version=2.5.1 kotlin.incremental=true kotlin.incremental.java=true kotlin.caching.enabled=true diff --git a/src/main/kotlin/io/github/beradq/adybubbles/Bubbles.kt b/src/main/kotlin/io/github/beradq/adybubbles/Bubbles.kt index 0b2f305..b5d993c 100644 --- a/src/main/kotlin/io/github/beradq/adybubbles/Bubbles.kt +++ b/src/main/kotlin/io/github/beradq/adybubbles/Bubbles.kt @@ -1,7 +1,7 @@ package io.github.beradq.adybubbles class Bubbles(val items: MutableList, val config: BubbleConfig) : Cloneable { - private val state = BubbleState(0) + private val state = BubbleState(0, if (config.mode == ChatPopupMode.ONCE) -1L else 0) private var restDelay = config.restDelayRange.random() private var period = config.period.random() @@ -20,7 +20,7 @@ class Bubbles(val items: MutableList, val config: BubbleConfig) : Clonea data class BubbleState( var index: Int, - var timeCount: Long = 0 + var timeCount: Long ) : Cloneable fun next(): String? {