@@ -13,6 +13,8 @@ public class ModernFixConfigScreen extends Screen {
1313
1414 public boolean madeChanges = false ;
1515 private Button doneButton , wikiButton ;
16+ private double lastScrollAmount = 0 ;
17+
1618 public ModernFixConfigScreen (Screen lastScreen ) {
1719 super (new TranslatableComponent ("modernfix.config" ));
1820 this .lastScreen = lastScreen ;
@@ -21,6 +23,7 @@ public ModernFixConfigScreen(Screen lastScreen) {
2123 @ Override
2224 protected void init () {
2325 this .optionList = new OptionList (this , this .minecraft );
26+ this .optionList .setScrollAmount (lastScrollAmount );
2427 this .addWidget (this .optionList );
2528 this .wikiButton = new Button (this .width / 2 - 155 , this .height - 29 , 150 , 20 , new TranslatableComponent ("modernfix.config.wiki" ), (arg ) -> {
2629 Util .getPlatform ().openUri ("https://github.com/embeddedt/ModernFix/wiki/Summary-of-Patches" );
@@ -50,4 +53,8 @@ public void render(PoseStack poseStack, int mouseX, int mouseY, float partialTic
5053 public void renderComponentHoverEffect (PoseStack matrixStack , @ Nullable Style style , int mouseX , int mouseY ) {
5154 super .renderComponentHoverEffect (matrixStack , style , mouseX , mouseY );
5255 }
56+
57+ public void setLastScrollAmount (double d ) {
58+ this .lastScrollAmount = d ;
59+ }
5360}
0 commit comments