mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 11:37:40 +01:00
Only updates EOSE log if the time is bigger
This commit is contained in:
@@ -27,4 +27,10 @@ class EOSETime(
|
||||
var time: Long,
|
||||
) {
|
||||
override fun toString(): String = time.toString()
|
||||
|
||||
fun update(newTime: Long) {
|
||||
if (newTime > time) {
|
||||
time = newTime
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user