From 78f39b50ab2e527f061572a331b6f6932f559fb4 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 11 Oct 2024 23:07:01 +0100 Subject: [PATCH] Remove broken code I accidentally added back in whoops --- .../NewMenuSystem/OptionsMenuManager.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs b/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs index d4e3315b..f1d3c762 100644 --- a/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs +++ b/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs @@ -717,12 +717,6 @@ public IOWMLTextEntryElement AddTextEntryInput(Menu menu, string label, string i if (isNumeric) { - textInputPopup.OnInputPopupValidateChar += c => - { - var text = textInputPopup.GetInputText() + c; - return Regex.IsMatch(text, @"^\d*[,.]?\d*$"); - }; - textInputPopup.OnValidateChar += (string input, int charIndex, char addedChar) => { var text = input.Insert(charIndex, addedChar.ToString());