aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle.kts2
-rw-r--r--gradle.properties2
-rw-r--r--src/main/resources/fabric.mod.json2
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java3
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java6
5 files changed, 7 insertions, 8 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index eea4cdb..491f972 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -54,7 +54,7 @@ dependencies {
mappings("net.fabricmc:yarn:$minecraftVersion+build.+:v2")
modImplementation("net.fabricmc:fabric-loader:$fabricLoaderVersion")
- modImplementation(fabricApi.module("fabric-resource-loader-v0", "0.66.2+1.19.3"))
+ modImplementation(fabricApi.module("fabric-resource-loader-v0", "0.67.1+1.19.3"))
"testmodImplementation"(sourceSets.main.get().output)
}
diff --git a/gradle.properties b/gradle.properties
index a7543f6..841f08b 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx3G
-minecraftVersion=22w46a
+minecraftVersion=1.19.3-pre1
fabricLoaderVersion=0.14.10
modId=yet-another-config-lib
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index 37b150e..234a281 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -20,7 +20,7 @@
},
"depends": {
"fabricloader": ">=0.14.0",
- "minecraft": "~1.19.3-alpha.22.46.a",
+ "minecraft": "~1.19.3-beta.1",
"java": ">=17",
"fabric-resource-loader-v0": "*"
},
diff --git a/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java b/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java
index 39baffa..c71f592 100644
--- a/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java
+++ b/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java
@@ -1,13 +1,12 @@
package dev.isxander.yacl.test.config;
-import com.google.gson.Gson;
import dev.isxander.yacl.config.ConfigInstance;
import dev.isxander.yacl.config.GsonConfigInstance;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.loader.api.FabricLoader;
public class Entrypoint implements ClientModInitializer {
- private static GsonConfigInstance<ConfigData> config;
+ private static ConfigInstance<ConfigData> config;
@Override
public void onInitializeClient() {
diff --git a/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java b/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java
index b32a392..2635eaf 100644
--- a/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java
+++ b/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java
@@ -18,9 +18,9 @@ public abstract class TitleScreenMixin extends Screen {
@Inject(method = "init", at = @At("RETURN"))
private void injectTestButton(CallbackInfo ci) {
- addDrawableChild(ButtonWidget.createBuilder(Text.of("YACL"), button -> client.setScreen(GuiTest.getModConfigScreenFactory(client.currentScreen)))
- .setPosition(0, 0)
- .setWidth(50)
+ addDrawableChild(ButtonWidget.builder(Text.of("YACL"), button -> client.setScreen(GuiTest.getModConfigScreenFactory(client.currentScreen)))
+ .position(0, 0)
+ .width(50)
.build());
}
}