fix briefcase setup screen text field accepting all characters
@@ -45,6 +45,7 @@ public class BriefcaseSetupScreen extends ContainerScreen<GenericContainer> {
addButton(keycodeTextbox = new TextFieldWidget(font, width / 2 - 37, height / 2 - 47, 77, 12, StringTextComponent.EMPTY));
keycodeTextbox.setMaxStringLength(4);
+ keycodeTextbox.setValidator(s -> s.matches("[0-9]*"));
keycodeTextbox.setResponder(text -> saveAndContinueButton.active = text.length() == 4);
setFocusedDefault(keycodeTextbox);
}
