@@ -2,7 +2,7 @@ package mindustry.mod;
|
|||||||
|
|
||||||
/** Mod listing as a data class. */
|
/** Mod listing as a data class. */
|
||||||
public class ModListing{
|
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 boolean hasScripts, hasJava;
|
||||||
public String[] contentTypes = {};
|
public String[] contentTypes = {};
|
||||||
public int stars;
|
public int stars;
|
||||||
@@ -12,7 +12,7 @@ public class ModListing{
|
|||||||
return "ModListing{" +
|
return "ModListing{" +
|
||||||
"repo='" + repo + '\'' +
|
"repo='" + repo + '\'' +
|
||||||
", name='" + name + '\'' +
|
", name='" + name + '\'' +
|
||||||
", modName='" + modName + '\'' +
|
", internalName='" + internalName + '\'' +
|
||||||
", author='" + author + '\'' +
|
", author='" + author + '\'' +
|
||||||
", lastUpdated='" + lastUpdated + '\'' +
|
", lastUpdated='" + lastUpdated + '\'' +
|
||||||
", description='" + description + '\'' +
|
", description='" + description + '\'' +
|
||||||
|
|||||||
@@ -675,7 +675,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
public void importDependencies(Seq<String> dependencies){
|
public void importDependencies(Seq<String> dependencies){
|
||||||
getModList(listings -> {
|
getModList(listings -> {
|
||||||
listings.each(l -> dependencies.contains(l.modName), l -> {
|
listings.each(l -> dependencies.contains(l.internalName), l -> {
|
||||||
githubImportMod(l.repo, l.hasJava);
|
githubImportMod(l.repo, l.hasJava);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user