From 104ceaf0a46943552b4d51beff1d7a70f88d2abc Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 22 Oct 2022 21:46:44 +0700 Subject: [PATCH] Don't scroll any possible item variant this fast --- .../kotlin/ru/dbotthepony/mc/otm/android/AndroidResearch.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/android/AndroidResearch.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/android/AndroidResearch.kt index 6e4ecd26e..20e4ffae9 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/android/AndroidResearch.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/android/AndroidResearch.kt @@ -24,6 +24,7 @@ import ru.dbotthepony.mc.otm.core.getCompoundList import ru.dbotthepony.mc.otm.core.nonEmpty import ru.dbotthepony.mc.otm.core.registryName import ru.dbotthepony.mc.otm.core.set +import ru.dbotthepony.mc.otm.milliTime import ru.dbotthepony.mc.otm.nanoTime import ru.dbotthepony.mc.otm.network.FieldSynchronizer import ru.dbotthepony.mc.otm.registry.MRegistry @@ -348,7 +349,7 @@ class AndroidResearch(val type: AndroidResearchType, val capability: MatteryPlay } } - val chooseItem = tag.items[((nanoTime / 300_000_000L).absoluteValue % tag.items.size).toInt()] + val chooseItem = tag.items[((milliTime / 800L).absoluteValue % tag.items.size).toInt()] val suffix = if (tag.items.size > 1) "_any" else "" if (required > 0) {