From 973c13e84f8e091a6a920779103d96559dcd32a8 Mon Sep 17 00:00:00 2001 From: nea Date: Sat, 27 Aug 2022 01:38:49 +0200 Subject: Switch to yarn mappings --- .../kotlin/moe/nea/notenoughupdates/gui/repogui.kt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt') diff --git a/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt b/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt index 40301fd..00bc099 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt @@ -1,31 +1,31 @@ package moe.nea.notenoughupdates.gui import moe.nea.notenoughupdates.repo.RepoManager -import net.minecraft.network.chat.Component +import net.minecraft.text.Text fun repoGui(): ConfigGui { return ConfigGui(RepoManager) { - title(Component.literal("NotEnoughUpdates Repo Settings")) - toggle(Component.literal("Auto Update"), RepoManager.Config::autoUpdate) + title(Text.literal("NotEnoughUpdates Repo Settings")) + toggle(Text.literal("Auto Update"), RepoManager.Config::autoUpdate) textfield( - Component.literal("Repo Username"), - Component.literal(""), + Text.literal("Repo Username"), + Text.literal(""), RepoManager.Config::user, maxLength = 255 ) textfield( - Component.literal("Repo Name"), - Component.literal(""), + Text.literal("Repo Name"), + Text.literal(""), RepoManager.Config::repo ) textfield( - Component.literal("Repo Branch"), - Component.literal(""), + Text.literal("Repo Branch"), + Text.literal(""), RepoManager.Config::branch ) button( - Component.literal("Reset to Defaults"), - Component.literal("Reset"), + Text.literal("Reset to Defaults"), + Text.literal("Reset"), ) { RepoManager.config.user = "NotEnoughUpdates" RepoManager.config.repo = "NotEnoughUpdates-REPO" -- cgit