From 885eaf7d2425857971a6ba2ab5d6cbd13ae87c99 Mon Sep 17 00:00:00 2001 From: kallmetony Date: Sat, 6 Jan 2024 14:12:54 +1100 Subject: [PATCH] fix marker creation text field cheers tony --- .../hunternif/mc/impl/atlas/client/gui/GuiMarkerFinalizer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/hunternif/mc/impl/atlas/client/gui/GuiMarkerFinalizer.java b/common/src/main/java/hunternif/mc/impl/atlas/client/gui/GuiMarkerFinalizer.java index fd8e95f88..b89440ed0 100644 --- a/common/src/main/java/hunternif/mc/impl/atlas/client/gui/GuiMarkerFinalizer.java +++ b/common/src/main/java/hunternif/mc/impl/atlas/client/gui/GuiMarkerFinalizer.java @@ -92,7 +92,8 @@ public void init() { }).dimensions(this.width / 2 + BUTTON_SPACING / 2, this.height / 2 + 40, BUTTON_WIDTH, 20).build()); textField = new TextFieldWidget(MinecraftClient.getInstance().textRenderer, (this.width - 200) / 2, this.height / 2 - 81, 200, 20, Text.translatable("gui.antiqueatlas.marker.label")); textField.setEditable(true); - textField.setText(""); + textField.setFocusUnlocked(true); + textField.setFocused(true); scroller = new GuiScrollingContainer(); scroller.setWheelScrollsHorizontally();