Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jan 4, 2025
1 parent e296a03 commit d5d6f5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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.11
mod_version=1.2.12

# Mod
mod_id=zenith
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ 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.id.getNamespace() + "/" + this.folder + path + id);
PackLocationInfo loc = new PackLocationInfo(id, Component.empty(), PackSource.BUILT_IN, Optional.empty());
String namespace = this.id.getNamespace() + "/";
Path resource = ModList.get().getModFileById(this.id.getNamespace()).getFile().findResource("packs/" + namespace + this.folder + path + id);
PackLocationInfo loc = new PackLocationInfo("mod/" + namespace + this.id.getPath(), 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 @@ -23,7 +23,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());
PackLocationInfo loc = new PackLocationInfo("mod/" + modid + "/" + id, Component.translatable("pack." + modid + "." + id + ".title"), PackSource.BUILT_IN, Optional.empty());
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()));
Expand Down

0 comments on commit d5d6f5c

Please sign in to comment.