aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
index 3485e56d8..2a26605aa 100644
--- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
@@ -269,6 +269,7 @@ public class VillagerRecipeViewingScreen extends Screen {
scroll = MathHelper.clamp(scroll, 0, height - scrollListBounds.height + 2);
if (scrollBarAlphaFuture == 0)
scrollBarAlphaFuture = 1f;
+ if (System.currentTimeMillis() - scrollBarAlphaFutureTime > 300f)
scrollBarAlphaFutureTime = System.currentTimeMillis();
return true;
}