diff --git a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java index 92138207e4..83f4b419c5 100644 --- a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java +++ b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java @@ -1172,7 +1172,7 @@ public TextSetting(String name, String def, Cons changed){ public void add(SettingsTable table){ TextField field = new TextField(settings.getString(name)); field.setMessageText(def); - field.typed(c -> { + field.changed(() -> { settings.put(name, field.getText()); if(changed != null){ changed.get(field.getText()); @@ -1197,7 +1197,7 @@ public void add(SettingsTable table){ TextArea area = new TextArea(settings.getString(name)); area.setPrefRows(5); - area.typed(c -> { + area.changed(() -> { settings.put(name, area.getText()); if(changed != null){ changed.get(area.getText());