aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2024-05-29 22:42:46 +0100
committerisXander <xander@isxander.dev>2024-05-29 22:42:46 +0100
commit646c7bac69dba476b3f9171568091eb23a86edaa (patch)
tree83727744315b956120fb573f9ecd883837b63099 /src/testmod/java/dev/isxander
parent41253828df7c2066b5df29a32aa8e512f34ad85a (diff)
downloadYetAnotherConfigLib-646c7bac69dba476b3f9171568091eb23a86edaa.tar.gz
YetAnotherConfigLib-646c7bac69dba476b3f9171568091eb23a86edaa.tar.bz2
YetAnotherConfigLib-646c7bac69dba476b3f9171568091eb23a86edaa.zip
1.21 compat
Diffstat (limited to 'src/testmod/java/dev/isxander')
-rw-r--r--src/testmod/java/dev/isxander/yacl3/test/AutogenConfigTest.java2
-rw-r--r--src/testmod/java/dev/isxander/yacl3/test/GuiTest.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/testmod/java/dev/isxander/yacl3/test/AutogenConfigTest.java b/src/testmod/java/dev/isxander/yacl3/test/AutogenConfigTest.java
index 9bb361e..186d192 100644
--- a/src/testmod/java/dev/isxander/yacl3/test/AutogenConfigTest.java
+++ b/src/testmod/java/dev/isxander/yacl3/test/AutogenConfigTest.java
@@ -24,7 +24,7 @@ import java.util.List;
public class AutogenConfigTest {
public static final ConfigClassHandler<AutogenConfigTest> INSTANCE = ConfigClassHandler.createBuilder(AutogenConfigTest.class)
- .id(new ResourceLocation("yacl3-test", "config"))
+ .id(YACLPlatform.rl("yacl3-test", "config"))
.serializer(config -> GsonConfigSerializerBuilder.create(config)
.setPath(YACLPlatform.getConfigDir().resolve("yacl-test-v2.json5"))
.setJson5(true)
diff --git a/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java b/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
index cdc1285..07e0098 100644
--- a/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
+++ b/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
@@ -14,6 +14,7 @@ import dev.isxander.yacl3.gui.controllers.string.number.DoubleFieldController;
import dev.isxander.yacl3.gui.controllers.string.number.FloatFieldController;
import dev.isxander.yacl3.gui.controllers.string.number.IntegerFieldController;
import dev.isxander.yacl3.gui.controllers.string.number.LongFieldController;
+import dev.isxander.yacl3.platform.YACLPlatform;
import net.minecraft.ChatFormatting;
import net.minecraft.Util;
import net.minecraft.client.GraphicsStatus;
@@ -502,7 +503,7 @@ public class GuiTest {
}
private static ResourceLocation imageSample(String name) {
- return new ResourceLocation("yacl_test", "textures/images/" + name);
+ return YACLPlatform.rl("yacl_test", "textures/images/" + name);
}
private static boolean myBooleanOption = true;