Skip to content

Commit

Permalink
Use proper constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Nov 30, 2023
1 parent dc83dbe commit ef38706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public record ExplodedMod(String modid, List<Path> paths) {}
public List<IModLocator.ModFileOrException> scanMods() {
explodedMods.forEach(explodedMod -> {
var jarContents = new JarContentsBuilder().paths(explodedMod.paths().toArray(Path[]::new)).build();
if (jarContents.findFile("/META-INF/mods.toml").isPresent()) {
if (jarContents.findFile(AbstractModProvider.MODS_TOML).isPresent()) {
var mjm = new ModJarMetadata(jarContents);
var mf = new ModFile(SecureJar.from(jarContents, mjm), this, ModFileParser::modsTomlParser);
mjm.setModFile(mf);
Expand Down

0 comments on commit ef38706

Please sign in to comment.