From ee30c795a3660b5c7cef64905a009e14150cb5cf Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Wed, 15 Oct 2025 22:30:30 +0100 Subject: [PATCH] fix: change max length for servers text box --- .../net/trafficlunar/optionsprofiles/gui/EditProfileScreen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/net/trafficlunar/optionsprofiles/gui/EditProfileScreen.java b/common/src/main/java/net/trafficlunar/optionsprofiles/gui/EditProfileScreen.java index 27eb40a..b024d13 100644 --- a/common/src/main/java/net/trafficlunar/optionsprofiles/gui/EditProfileScreen.java +++ b/common/src/main/java/net/trafficlunar/optionsprofiles/gui/EditProfileScreen.java @@ -35,6 +35,7 @@ public class EditProfileScreen extends Screen { this.profileNameEdit.setValue(profileName.getString()); this.serversEdit = new EditBox(this.font, this.width / 2 - 102, 137, 204, 20, Component.empty()); + this.serversEdit.setMaxLength(128); this.serversEdit.setValue(this.profileConfiguration.getServers()); this.serversEdit.setHint(Component.translatable("gui.optionsprofiles.servers-hint").withStyle(ChatFormatting.GRAY)); this.serversEdit.setTooltip(Tooltip.create(Component.translatable("gui.optionsprofiles.servers.tooltip")));