Update to 1.21.4

Neoforge will follow as soon as it's released
This commit is contained in:
Martin Prokoph
2024-12-03 11:44:06 +01:00
parent 18209609cb
commit a2c0a8afb0
3 changed files with 12 additions and 12 deletions

View File

@@ -247,9 +247,9 @@ public abstract class MidnightConfig {
if (prevTab != null && prevTab != tabManager.getCurrentTab()) {
prevTab = tabManager.getCurrentTab();
this.list.clear(); fillList();
list.setScrollAmount(0);
list.setScrollY(0);
}
scrollProgress = list.getScrollAmount();
scrollProgress = list.getScrollY();
for (EntryInfo info : entries) try {info.field.set(null, info.value);} catch (IllegalAccessException ignored) {}
updateButtons();
}
@@ -391,7 +391,7 @@ public abstract class MidnightConfig {
}
this.list.addButton(widgets, name, info);
} else this.list.addButton(List.of(), name, info);
} list.setScrollAmount(scrollProgress);
} list.setScrollY(scrollProgress);
updateButtons();
}
}