From 2b8bfb659dd29f1e8e9b65e0c0178bebee2ba3ad Mon Sep 17 00:00:00 2001 From: orifu Date: Wed, 5 Jun 2024 14:59:46 +0100 Subject: [PATCH] the bad ending :( --- .../ix0rai/rainglow/config/RainglowConfigScreen.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/ix0rai/rainglow/config/RainglowConfigScreen.java b/src/main/java/io/ix0rai/rainglow/config/RainglowConfigScreen.java index e1106fd..51ebb0f 100644 --- a/src/main/java/io/ix0rai/rainglow/config/RainglowConfigScreen.java +++ b/src/main/java/io/ix0rai/rainglow/config/RainglowConfigScreen.java @@ -64,10 +64,10 @@ protected void save() { } @Override - protected void method_60325() { + protected void method_60329() { LinearLayoutWidget contentLayout = LinearLayoutWidget.createVertical().setSpacing(8); - contentLayout.add(createModeButton(), LayoutSettings::alignVerticallyBottom); + contentLayout.add(createModeButton(), LayoutSettings::alignHorizontallyCenter); contentLayout.add(getInfoText(), LayoutSettings::alignHorizontallyCenter); GridWidget gridWidget = new GridWidget(); @@ -89,12 +89,15 @@ protected void method_60325() { contentLayout.add(ButtonWidget.builder( Rainglow.translatableText("config.custom"), button -> MinecraftClient.getInstance().setScreen(new CustomModeScreen(this)) - ).width(308).position(4, 0).build(), - LayoutSettings.create().setPadding(4, 0)); + ).width(308).build(), + LayoutSettings::alignHorizontallyCenter); this.field_49503.addToContents(contentLayout); } + @Override + protected void method_60325() {} + private DeferredSaveOption createEntityToggle(RainglowEntity entity) { return DeferredSaveOption.createDeferredBoolean( "config.enable_" + entity.getId(),