From 9a7d1bc21e86041d8a6f54602282a770ca557c60 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 27 Feb 2020 02:48:41 +0800 Subject: Better refiltering, 20w09a, delta based PreRecipeViewingScreen animation and fix pressing E closes when searching. Signed-off-by: shedaniel --- src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java') diff --git a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java index 57a8859c6..13fd15027 100644 --- a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java @@ -156,7 +156,7 @@ public class PreRecipeViewingScreen extends Screen { private void updateFramePosition(float delta) { target = clamp(target); if (!DynamicNewSmoothScrollingEntryListWidget.Precision.almostEquals(frame, target, DynamicNewSmoothScrollingEntryListWidget.Precision.FLOAT_EPSILON)) - frame = ease(frame, target, Math.min((System.currentTimeMillis() - start) / ((double) duration), 1)); + frame = ease(frame, target, Math.min((System.currentTimeMillis() - start) / (double) duration * delta * 3.0D, 1)); else frame = target; } -- cgit