modName -> internalName

4746a2fd1e
This commit is contained in:
MEEPofFaith
2024-04-16 16:48:44 -07:00
parent 331fd2e803
commit dd0719c6f1
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ package mindustry.mod;
/** Mod listing as a data class. */
public class ModListing{
public String repo, name, modName, subtitle, author, lastUpdated, description, minGameVersion;
public String repo, name, internalName, subtitle, author, lastUpdated, description, minGameVersion;
public boolean hasScripts, hasJava;
public String[] contentTypes = {};
public int stars;
@@ -12,7 +12,7 @@ public class ModListing{
return "ModListing{" +
"repo='" + repo + '\'' +
", name='" + name + '\'' +
", modName='" + modName + '\'' +
", internalName='" + internalName + '\'' +
", author='" + author + '\'' +
", lastUpdated='" + lastUpdated + '\'' +
", description='" + description + '\'' +

View File

@@ -675,7 +675,7 @@ public class ModsDialog extends BaseDialog{
public void importDependencies(Seq<String> dependencies){
getModList(listings -> {
listings.each(l -> dependencies.contains(l.modName), l -> {
listings.each(l -> dependencies.contains(l.internalName), l -> {
githubImportMod(l.repo, l.hasJava);
});
});