1
0
forked from Clones/Controlify

Update to 1.20.3

This commit is contained in:
isxander
2023-11-22 19:27:42 +00:00
parent 09b91cfab8
commit ba5681f329
5 changed files with 23 additions and 25 deletions

View File

@ -76,14 +76,10 @@ public class SubmitUnknownControllerScreen extends Screen implements DontInterup
var operationalText = Component.translatable("controlify.controller_submission.operational_checkbox")
.withStyle(ChatFormatting.BOLD);
this.operationalCheckbox = this.addRenderableWidget(
new Checkbox(
this.width / 2 - font.width(operationalText) / 2 - 8,
y,
150,
checkboxHeight,
operationalText,
true
)
Checkbox.builder(operationalText, font)
.pos(this.width / 2 - font.width(operationalText) / 2 - 8, y)
.selected(false)
.build()
);
y += checkboxHeight + checkboxPadding;

View File

@ -22,7 +22,7 @@ public class ToastUtils {
private boolean removed;
private ControlifyToast(Component title, List<FormattedCharSequence> description, int maxWidth, boolean longer) {
super(longer ? SystemToastIds.UNSECURE_SERVER_WARNING : SystemToastIds.PERIODIC_NOTIFICATION, title, description, maxWidth);
super(longer ? SystemToastId.UNSECURE_SERVER_WARNING : SystemToastId.PERIODIC_NOTIFICATION, title, description, maxWidth);
}
@Override

View File

@ -2,4 +2,4 @@ accessWidener v2 named
accessible class net/minecraft/client/gui/screens/LanguageSelectScreen$LanguageSelectionList
accessible class net/minecraft/client/gui/components/toasts/ToastComponent$ToastInstance
accessible method net/minecraft/client/gui/components/toasts/SystemToast <init> (Lnet/minecraft/client/gui/components/toasts/SystemToast$SystemToastIds;Lnet/minecraft/network/chat/Component;Ljava/util/List;I)V
accessible method net/minecraft/client/gui/components/toasts/SystemToast <init> (Lnet/minecraft/client/gui/components/toasts/SystemToast$SystemToastId;Lnet/minecraft/network/chat/Component;Ljava/util/List;I)V