Skip to content

Commit

Permalink
the bad ending :(
Browse files Browse the repository at this point in the history
  • Loading branch information
orifu committed Jun 5, 2024
1 parent 621e97c commit 2b8bfb6
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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<Boolean> createEntityToggle(RainglowEntity entity) {
return DeferredSaveOption.createDeferredBoolean(
"config.enable_" + entity.getId(),
Expand Down

0 comments on commit 2b8bfb6

Please sign in to comment.