From d5274d15bdee50ec27bb84740926abf790e19053 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Thu, 27 Jun 2024 02:46:13 +0800 Subject: [PATCH] Backport old method of creating ResourceLocations --- src/main/java/com/moulberry/axiom/VersionHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moulberry/axiom/VersionHelper.java b/src/main/java/com/moulberry/axiom/VersionHelper.java index 28aa8bf..1b48933 100644 --- a/src/main/java/com/moulberry/axiom/VersionHelper.java +++ b/src/main/java/com/moulberry/axiom/VersionHelper.java @@ -13,11 +13,11 @@ public class VersionHelper { } public static ResourceLocation createResourceLocation(String composed) { - return ResourceLocation.parse(composed); + return new ResourceLocation(composed); } public static ResourceLocation createResourceLocation(String namespace, String path) { - return ResourceLocation.fromNamespaceAndPath(namespace, path); + return new ResourceLocation(namespace, path); } }