forked from Clones/Controlify
Update to 1.20.3
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user