From b8dc4f0cdb4be19f859850c3f492f18417d53269 Mon Sep 17 00:00:00 2001 From: hypherionmc Date: Fri, 14 Jun 2024 08:12:31 +0200 Subject: [PATCH] [HOTFIX] Fix crash for Resource Locations that use `mod:something` format --- .../nojang/resources/ResourceIdentifier.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/1.21/Common/src/main/java/com/hypherionmc/craterlib/nojang/resources/ResourceIdentifier.java.patch diff --git a/patches/1.21/Common/src/main/java/com/hypherionmc/craterlib/nojang/resources/ResourceIdentifier.java.patch b/patches/1.21/Common/src/main/java/com/hypherionmc/craterlib/nojang/resources/ResourceIdentifier.java.patch new file mode 100644 index 0000000..267e68b --- /dev/null +++ b/patches/1.21/Common/src/main/java/com/hypherionmc/craterlib/nojang/resources/ResourceIdentifier.java.patch @@ -0,0 +1,11 @@ +--- a/Common/src/main/java/com/hypherionmc/craterlib/nojang/resources/ResourceIdentifier.java ++++ b/Common/src/main/java/com/hypherionmc/craterlib/nojang/resources/ResourceIdentifier.java +@@ -11,7 +11,7 @@ + } + + public ResourceIdentifier(String path) { +- this.internal = ResourceLocation.withDefaultNamespace(path); ++ this.internal = ResourceLocation.parse(path); + } + + public String getNamespace() {