remove config UI text limit

This commit is contained in:
James Seibel
2026-02-05 21:37:56 -06:00
parent 02a309cd34
commit 52cf6ac9df
3 changed files with 2 additions and 3 deletions
@@ -573,7 +573,7 @@ public class ClassicConfigGUI
optionFieldPosX, optionFieldPosZ,
ConfigScreenConfigs.OPTION_FIELD_WIDTH - 4, ConfigScreenConfigs.CATEGORY_BUTTON_HEIGHT,
Translatable(""));
widget.setMaxLength(ConfigScreenConfigs.OPTION_FIELD_WIDTH);
widget.setMaxLength(3_000_000); // hopefully 3 million characters should be enough for any normal use-case, lol
widget.insertText(String.valueOf(configEntry.get()));
Predicate<String> processor = configGuiInfo.tooltipFunction.apply(widget, this.doneButton);
@@ -132,7 +132,6 @@ public class ForgeClientProxy implements AbstractModInitializer.IEventProxy
ClientLevel clientLevel = (ClientLevel) level;
IClientLevelWrapper clientLevelWrapper = ClientLevelWrapper.getWrapper(clientLevel, true);
// TODO this causes a crash due to level being set to null somewhere
ClientApi.INSTANCE.clientLevelLoadEvent(clientLevelWrapper);
}
@SubscribeEvent