Skip to content

Commit

Permalink
fix: idk??
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jan 4, 2025
1 parent 17de4a0 commit e296a03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.debug=false


# Version
mod_version=1.2.10
mod_version=1.2.11

# Mod
mod_id=zenith
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class PackUtils {

public static void setupPack(AddPackFindersEvent event, String modid, String path, String id, boolean required, boolean hidden, Function<Path, Pack.ResourcesSupplier> 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);
Expand Down

0 comments on commit e296a03

Please sign in to comment.