Skip to content

Commit

Permalink
Make space on screen for button
Browse files Browse the repository at this point in the history
  • Loading branch information
MacaylaMarvelous81 committed Aug 2, 2024
1 parent 730be96 commit 6bce5b5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ protected EditWorldScreenMixin(Text title) {
super(title);
}

@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(II)V"), method = "<init>")
@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(II)V", ordinal = 1), method = "<init>")
private void addButton(CallbackInfo info) {
this.layout.add(ButtonWidget.builder(SELECT_DATAPACKS_TEXT, (button) -> {}).width(200).build());

// Reduce spacing so vanilla buttons remain on screen.
this.layout.spacing(1);
}
}

0 comments on commit 6bce5b5

Please sign in to comment.