aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
diff options
context:
space:
mode:
authorInglett <inglettronald@gmail.com>2024-01-18 14:58:23 -0600
committerInglett <inglettronald@gmail.com>2024-01-18 14:58:23 -0600
commit2249182df19085e14c5bd29d466331228677ad3c (patch)
tree26028db9ab5c6803665ee6446517d2bbf96fa9a5 /src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
parent2d8f0f28c9b7f1f778a689ce14591136fb0490dd (diff)
downloadDulkirMod-Fabric-2249182df19085e14c5bd29d466331228677ad3c.tar.gz
DulkirMod-Fabric-2249182df19085e14c5bd29d466331228677ad3c.tar.bz2
DulkirMod-Fabric-2249182df19085e14c5bd29d466331228677ad3c.zip
bump mod to 1.20.4 support
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt b/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
index 93db1a0..ccd5dd2 100644
--- a/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
+++ b/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
@@ -21,15 +21,17 @@ import com.dulkirfabric.util.render.AnimationPreset
import com.dulkirfabric.util.render.HudElement
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
-import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import me.shedaniel.clothconfig2.api.ConfigBuilder
import moe.nea.jarvis.api.Point
import net.minecraft.client.gui.screen.Screen
-import net.minecraft.client.util.InputUtil
-import net.minecraft.client.util.InputUtil.*
-import net.minecraft.text.*
+import net.minecraft.client.util.InputUtil.Key
+import net.minecraft.client.util.InputUtil.UNKNOWN_KEY
+import net.minecraft.text.MutableText
+import net.minecraft.text.PlainTextContent.Literal
+import net.minecraft.text.Text
+import net.minecraft.text.TextColor
import net.minecraft.util.Formatting
import net.minecraft.util.Identifier
import java.io.File
@@ -37,7 +39,7 @@ import java.io.File
class DulkirConfig {
private val buttonText: Text =
- MutableText.of(LiteralTextContent("Dulkir")).formatted(Formatting.BOLD, Formatting.YELLOW)
+ MutableText.of(Literal("Dulkir")).formatted(Formatting.BOLD, Formatting.YELLOW)
var screen: Screen = buildScreen(null)
fun buildScreen(parentScreen: Screen? = null): Screen {