From e296a03e8f05dba943572b238abb4bc3c3394468 Mon Sep 17 00:00:00 2001 From: Zepalesque <60141811+Zepalesque@users.noreply.github.com> Date: Sat, 4 Jan 2025 16:08:25 -0500 Subject: [PATCH] fix: idk?? --- gradle.properties | 2 +- .../java/net/zepalesque/zenith/api/packconfig/PackConfig.java | 2 +- .../java/net/zepalesque/zenith/api/packconfig/PackUtils.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 176ecb6..a8ebc93 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.debug=false # Version -mod_version=1.2.10 +mod_version=1.2.11 # Mod mod_id=zenith diff --git a/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java b/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java index 252f483..af88d1c 100644 --- a/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java +++ b/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java @@ -49,7 +49,7 @@ public ConfigAssembledPackResources.AssembledResourcesSupplier generate(Path pat } public PathPackResources createPack(String path, String id) { - Path resource = ModList.get().getModFileById(this.id.getNamespace()).getFile().findResource("packs/" + this.folder + path + id); + Path resource = ModList.get().getModFileById(this.id.getNamespace()).getFile().findResource("packs/" + this.id.getNamespace() + "/" + this.folder + path + id); PackLocationInfo loc = new PackLocationInfo(id, Component.empty(), PackSource.BUILT_IN, Optional.empty()); return new PathPackResources(loc, resource); } diff --git a/src/main/java/net/zepalesque/zenith/api/packconfig/PackUtils.java b/src/main/java/net/zepalesque/zenith/api/packconfig/PackUtils.java index a68f57f..28943cb 100644 --- a/src/main/java/net/zepalesque/zenith/api/packconfig/PackUtils.java +++ b/src/main/java/net/zepalesque/zenith/api/packconfig/PackUtils.java @@ -24,7 +24,7 @@ public class PackUtils { public static void setupPack(AddPackFindersEvent event, String modid, String path, String id, boolean required, boolean hidden, Function packBuilder) { PackLocationInfo loc = new PackLocationInfo(id, Component.translatable("pack." + modid + "." + id + ".title"), PackSource.BUILT_IN, Optional.empty()); - Path resourcePath = ModList.get().getModFileById(modid).getFile().findResource("packs/" + path); + Path resourcePath = ModList.get().getModFileById(modid).getFile().findResource("packs/" + modid + "/" + path); PackMetadataSection metadata = new PackMetadataSection(Component.translatable("pack." + modid + "." + id + ".description"), SharedConstants.getCurrentVersion().getPackVersion(event.getPackType())); Pack.Metadata meta = new Pack.Metadata(metadata.description(), PackCompatibility.COMPATIBLE, FeatureFlagSet.of(), List.of(), hidden);