@@ -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 + '\'' +
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user