Skip to content

Commit

Permalink
Use expression lambda, adjust indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Fireplace committed Jul 14, 2024
1 parent 4617357 commit c1ff09a
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.Style;
import net.minecraft.network.chat.TextColor;

public final class MissingDependencyScreen extends Screen
{
Expand All @@ -23,9 +22,14 @@ public MissingDependencyScreen(Screen parent) {
@Override
protected void init() {
super.init();
this.addRenderableWidget(new Button(this.width / 2 - 100, this.height - 30, 200, 20, Component.translatable("gui.cancel"), (button) -> {
closeScreen();
}));
this.addRenderableWidget(new Button(
this.width / 2 - 100,
this.height - 30,
200,
20,
Component.translatable("gui.cancel"),
(button) -> closeScreen()
));
this.addRenderableWidget(new Button(this.width / 2 - 100, 90, 200, 20, Component.literal("Cloth Config"), (button) -> {
ClickEvent clothUrlClickEvent = new ClickEvent(
ClickEvent.Action.OPEN_URL,
Expand Down

0 comments on commit c1ff09a

Please sign in to comment.