From f77162d17e3f7c1fdff6491065bda1dac74cff52 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 c312e90..1fa4dcb 100644 --- a/src/main/java/com/moulberry/axiom/VersionHelper.java +++ b/src/main/java/com/moulberry/axiom/VersionHelper.java @@ -12,11 +12,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); } }