mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-15 17:05:09 +01:00
Fix crash with multiple visible tabs
This commit is contained in:
@@ -287,10 +287,7 @@ public abstract class MidnightConfig {
|
||||
super.init();
|
||||
tabNavigation.setWidth(this.width);
|
||||
tabNavigation.init();
|
||||
if (tabs.size() > 1) {
|
||||
this.addDrawableChild(tabNavigation);
|
||||
list.renderHeaderSeparator = false;
|
||||
}
|
||||
if (tabs.size() > 1) this.addDrawableChild(tabNavigation);
|
||||
|
||||
this.addDrawableChild(ButtonWidget.builder(ScreenTexts.CANCEL, button -> {
|
||||
loadValues();
|
||||
@@ -311,6 +308,7 @@ public abstract class MidnightConfig {
|
||||
this.addSelectableChild(this.list);
|
||||
|
||||
fillList();
|
||||
if (tabs.size() > 1) list.renderHeaderSeparator = false;
|
||||
reload = true;
|
||||
}
|
||||
public void fillList() {
|
||||
|
||||
Reference in New Issue
Block a user